How do you define custom behaviours for the Android phone's volume buttons using Adobe AIR (ActionScript 3)?

前端 未结 1 594
Happy的楠姐
Happy的楠姐 2021-01-25 02:05

For buttons like the MENU or BACK button you can just add a listener for KeyboardEvent and check if the event keyCode is Keyboard.BACK or Keyboard.MENU.

However I don\'t

1条回答
  •  鱼传尺愫
    2021-01-25 02:23

    Nope. There isn't any support for detecting the volume buttons. (In AIR 3, you can write a native extension to access native features that aren't otherwise supported.)

    0 讨论(0)
提交回复
热议问题