Discussion Board

Results 1 to 7 of 7
  1. #1
    hi, is possible to disable the swipe gesture in fullscreen game? how can i do this?
    thanks

  2. #2
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    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
    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
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    Thanks summeli!

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

  6. #6
    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
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    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 Web Runtime
    Replies: 3
    Last Post: 2011-06-01, 13:08
  2. detecting left-right swipe in WRT?
    By InYourDreamz in forum Symbian Web Runtime
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved