Menu
Login
Language
DE EN FR ES IT CZ
Back

Mobile Buttons

  • #1, by darren-beckett Thursday, 25. June 2015, 16:36 11 years ago Quote
    Is there a way i can assign Key Actions to the Mobile Phone Back or Home buttons?
    I'd like to show the Main Menu if the users presses the back key.

    Great Poster

    386 Posts

  • #2, by afrlme Thursday, 25. June 2015, 16:51 11 years ago Quote
    Um if they aren't in the list of available key actions then they might be available in the Lua script keyEventHandler which has access to a lot more keys than the key actions section of the editor.

    http://wiki.visionaire-tracker.net/wiki/RegisterEventHandler (check example 3)

    P.S: I believe you might be able to use the keycode value to check if it's a specific key being pressed as not all of them are included as eEvtKeyName in the engine, as far as I'm aware. You can find a table of keycodes here.

    Imperator

    7290 Posts

  • #3, by darren-beckett Thursday, 25. June 2015, 18:22 11 years ago Quote
    Nice one!

    Great Poster

    386 Posts

  • #4, by darren-beckett Saturday, 27. June 2015, 20:08 11 years ago Quote
    How can i detect 2 finger pinch-zoom?

    Great Poster

    386 Posts

  • #5, by afrlme Saturday, 27. June 2015, 20:28 11 years ago Quote
    Hmm I believe mobile gesture support was added to the latest public build, to a degree, but I have no clue how to access / script it. Simon? grin

    Imperator

    7290 Posts

  • #6, by SimonS Monday, 29. June 2015, 15:27 11 years ago Quote
    I'm working on a pinch zoom script for Daedalic, but because they wanted to exclude a lot of things I need to rework it and that isn't finished yet.

    Thread Captain

    1622 Posts