SDL/src
David Ludwig abfbed92cf WinRT: simulate keyboard events on Windows Phone 8 back-button presses
Pressing the hardware back button on a Windows Phone 8 device will now cause SDL to emit a pair of key-down and key-up events, with the SDL scancode, SDL_SCANCODE_AC_BACK.

By default, if WinRT's native back-button-press events are not explicitly marked as 'handled', then Windows Phone will terminate the app.  More details on Microsoft's reasoning behind this can be found on MSDN, at http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj247550(v=vs.105).aspx

To mark back-button-press events as 'handled', set SDL_HINT_WINRT_HANDLE_BACK_BUTTON to 1.  Setting it to anything else will cause these events to not be marked as 'handled'.

Due to limitations in Windows Phone's APIs, SDL will emit a virtual key-up event immediately after the back button's key-down event is registered.  Unfortunately, Windows Phone 8 only allows one to register for back-button-press events, and not back-button-release events.
2014-01-26 08:06:36 -05:00
..
atomic WinRT: build fixes, post SDL 2.0.1 update 2013-10-27 23:03:11 -04:00
audio WinRT: merged with latest SDL 2.x/HG code 2013-11-28 22:09:21 -05:00
core WinRT: simulate keyboard events on Windows Phone 8 back-button presses 2014-01-26 08:06:36 -05:00
cpuinfo Initialize MEMORYSTATUSEX size before GlobalMemoryStatusEx() (thanks, Justin!). 2013-10-23 19:52:14 -04:00
events Renamed things named after BeOS to be named after Haiku instead. 2013-11-14 11:51:24 -05:00
file WinRT: merged with SDL 2.0.1 codebase 2013-10-27 21:26:46 -04:00
filesystem WinRT: merged with latest SDL 2.x/HG code 2013-11-28 22:09:21 -05:00
haptic Moved a SDL_SetError() call elsewhere to avoid triggering it needlessly. 2013-10-23 15:54:12 -04:00
joystick WinRT: prevented a potential race condition in the XInput backend 2013-12-25 14:42:38 -05:00
libm Fixed bug 2245 - add SDL_acos and SDL_asin 2013-11-16 18:56:02 -08:00
loadso WinRT: merged with latest SDL 2.x/HG code 2013-11-28 22:09:21 -05:00
main WinRT: merged with latest SDL 2.x/HG code 2013-11-28 22:09:21 -05:00
power Renamed things named after BeOS to be named after Haiku instead. 2013-11-14 11:51:24 -05:00
render WinRT: d3d11 blend mode bug fixes 2013-12-30 11:59:04 -05:00
stdlib WinRT: merged with latest SDL 2.x/HG code 2013-11-28 22:09:21 -05:00
test Accidentally committed debug code 2013-11-18 20:22:36 -08:00
thread WinRT: implemented SDL_DetachThread() for WinRT 2013-11-28 22:24:13 -05:00
timer WinRT: merged with latest SDL 2.x/HG code 2013-11-28 22:09:21 -05:00
video WinRT: minor error cleanup regarding OpenGL init 2013-12-26 14:21:47 -05:00
SDL.c Renamed things named after BeOS to be named after Haiku instead. 2013-11-14 11:51:24 -05:00
SDL_assert.c WinRT: merged with SDL 2.0.1 codebase 2013-10-27 21:26:46 -04:00
SDL_assert_c.h Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_error.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_error_c.h Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_hints.c Christoph Mallon: Remove pointless if (x) before SDL_free(x) 2013-08-29 08:29:21 -07:00
SDL_log.c WinRT: build fixes, post SDL 2.0.1 update 2013-10-27 23:03:11 -04:00