×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    10

    Disable swipe in game? [harmanattan]

    hi, is possible to disable the swipe gesture in fullscreen game? how can i do this?
    thanks

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Disable swipe in game? [harmanattan]

    Yes, it is possible to disable if your application really requires it
    https://www.developer.nokia.com/swip...ll_Screen.html

    Unfortunately, I do not yet know myself how to exactly do that :-(

    Hartti

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    48
    If you're using QWidget based UI you can take an example from here: https://qt.gitorious.org/qt-componen...e_requests/789

    The void MDeclarativeScreen::setAllowSwipe(bool enabled) function explains it quite well ;-)

    That request seems to be on main branch, so if you're using QML you could just use that enableswipe function.

    If you're using QWidget based UIs you could take an example from https://qt.gitorious.org/qt-componen...e_requests/789

    void MDeclarativeScreen::setAllowSwipe(bool enabled) function explains quite well how the swite can be disabled.

    That merge seems to be on mainbranch atm. so if you you're using QML you could just use the feature from there.
    Last edited by divanov; 2011-07-15 at 08:21.

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Disable swipe in game? [harmanattan]

    Thanks summeli!

  5. #5
    Registered User
    Join Date
    Jun 2005
    Posts
    48

    Re: Disable swipe in game? [harmanattan]

    ok, I didn't work for me Did it help you guys?

  6. #6
    Registered User
    Join Date
    Jun 2005
    Posts
    48

    Re: Disable swipe in game? [harmanattan]

    I also tried capturing the swipe, and accepting the event, but the OS takes the swipe event before QWidget
    Last edited by summeli; 2011-07-15 at 17:19.

  7. #7
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Disable swipe in game? [harmanattan]

    You might be able to catch the swipe event the same way it is done in libmeegotouch
    http://meego.gitorious.org/meegotouc...pplication.cpp
    See lines 464-493

    No, I do not know anything more about this. This is way over my head :-)

    Hartti

Similar Threads

  1. Swipe event
    By suryasraj in forum Symbian
    Replies: 3
    Last Post: 2011-06-01, 13:08
  2. detecting left-right swipe in WRT?
    By InYourDreamz in forum Symbian
    Replies: 2
    Last Post: 2010-01-20, 14:51
  3. How to send game in game file of phone
    By icq98hk in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-06-03, 11:10
  4. Replies: 1
    Last Post: 2002-12-04, 13:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×