ANDROID_TRAP_BACK_BUTTON


Description:

[ Version ( since = "2.0.9" ) ]
[ CCode ( cname = "SDL_HINT_ANDROID_TRAP_BACK_BUTTON" ) ]
public const string ANDROID_TRAP_BACK_BUTTON

A variable to control whether we trap the Android back button to handle it manually. This is necessary for the right mouse button to work on some Android devices, or to be able to trap the back button for use in your code reliably. If set to true, the back button will show up as an SDL_KEYDOWN / SDL_KEYUP pair with a keycode of SDL_SCANCODE_AC_BACK.

The variable can be set to the following values:

  • "0" - Back button will be handled as usual for system. (default)
  • "1" - Back button will be trapped, allowing you to handle the key press

    manually. (This will also let right mouse click work on systems

    where the right mouse button functions as back.)

The value of this hint is used at runtime, so it can be changed at any time.


Namespace: SDL.Hint
Package: sdl2



2022 vala-language.org