Mobile Buttons

  • #1, by darren-beckettThursday, 25. June 2015, 16:36 9 years ago
    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

    384 Posts


  • #2, by afrlmeThursday, 25. June 2015, 16:51 9 years ago
    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

    7278 Posts

  • #3, by darren-beckettThursday, 25. June 2015, 18:22 9 years ago
    Nice one!

    Great Poster

    384 Posts

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

    Great Poster

    384 Posts

  • #5, by afrlmeSaturday, 27. June 2015, 20:28 9 years ago
    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

    7278 Posts

  • #6, by SimonSMonday, 29. June 2015, 15:27 9 years ago
    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

    1580 Posts