Skip to content
Archive of posts filed under the Meego Development category.

iControlPad supported by AntSnes for Meego

I just got iControlPad http://icontrolpad.com/ and it seems to be without any problems on my N950 :)

Here’s short instructions how to use it:

  1. Start the iControlPad in keyboard mode (press A in startup)
  2. Run the bluetooth pairing from the phone Settings/Bluetooth/Bluetooth devices/ and then select the iControlPad and set it as trusted device
  3. Run the keyConfig from AntSnes under controls/ Run KeyConfig
  4. enjoy iControlPad

The Symbian is not yet supported, but I’m working on it ;-)

Disabling Swipe from a Fullscreen Game

The swipe is really annoying feature in fullscreen gaming (antsnes for example). Instead of controlling the game you might end up swiping the game into the background, which is not cool. Luckily the swipe can be disabled quite easily from QWidget based classes.

Here’s how you can disable the swipe:

void disableSwipe()
{
    QWidget * activeWindow = QApplication::activeWindow();
    Display *dpy = QX11Info::display();
    Atom atom;

    unsigned int customRegion[4];
    customRegion[0] = 0;
    customRegion[1] = 0;
    customRegion[2] = 854;
    customRegion[3] = 480;

    atom = XInternAtom(dpy, "_MEEGOTOUCH_CUSTOM_REGION", False);
    XChangeProperty(dpy, activeWindow->effectiveWinId(),
            atom, XA_CARDINAL, 32, PropModeReplace,
            reinterpret_cast(&customRegion[0]), 4);
}

And here’s an example of enabling it:

void enableSwipe()
{
    QWidget * activeWindow = QApplication::activeWindow();
    Display *dpy = QX11Info::display();
    Atom atom;

    atom = XInternAtom(dpy, "_MEEGOTOUCH_CUSTOM_REGION", False);
    if(XDeleteProperty(dpy, activeWindow->effectiveWinId(), atom) < 0){
      qWarning("XDeleteProperty for _MEEGOTOUCH_CUSTOM_REGION returns <0");
      }
}

Compiling with QtSDK, Madde and MinGW Makefiles

I received N950 from Nokia this monday, and I started porting the antsnes to Meego right away.

I decided to compile my emulators for Meego in the same way as I did for Symbian. I’m creating a static lib from the emulator core, and then I’m linking into that static lib from my UI code. The idea in here is that, I can make all kinds of special tricks when compiling the emulator core, and then use the standard Qt’s pro-file to compile the UI part. To accomplis this, I made a similar MinGW makefile for Madde, as I used with Symbian.

INSTALLATION

Here are the instructions to use this environment.

  1. Install MSYS
  2. Set environment variable MADDE_PATH to point into your Madde installation. It should point into it in msys format, for example /e/QtSDK/Madde

BUILDING WITH THE MAKEFILE

You’ll need two files: Makefile and config.mk inmyapp/gms path. You should also make folders myapp/gms/dist/gcce andmyapp/gms/obj/gcce .

After all these done, you could change your working directory into the build home by “cd /c/myapp/gms“. Then use the following commands to build.

  • make debug” will do the debug build,
  • “make release” will do the release build
  • “make clean” will do the clean