summaryrefslogtreecommitdiff
path: root/include/SDL_hints.h
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2018-01-17 17:24:15 -0800
committerSam Lantinga <slouken@libsdl.org>2018-01-17 17:24:15 -0800
commit03f8b2992b3533688596e097f1bc4fa389356d68 (patch)
treefcb7ef31ce8728c140d08b70bea9e1cfd7bc7969 /include/SDL_hints.h
parent1fb115e6b365cd0ab1d0994c00ec3ae50bbbcc70 (diff)
Added a hint SDL_HINT_APPLE_TV_REMOTE_SWIPES_AS_ARROW_KEYS to prevent turning Apple TV remote swipes into arrow key events
Diffstat (limited to 'include/SDL_hints.h')
-rw-r--r--include/SDL_hints.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/SDL_hints.h b/include/SDL_hints.h
index 1b55f8e0a5..e9a0e7c874 100644
--- a/include/SDL_hints.h
+++ b/include/SDL_hints.h
@@ -356,6 +356,16 @@ extern "C" {
#define SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION "SDL_APPLE_TV_REMOTE_ALLOW_ROTATION"
/**
+ * \brief A variable controlling whether the Apple TV remote swipes are
+ * translated into arrow key events
+ *
+ * This variable can be set to the following values:
+ * "0" - Swipes are not translated into arrow key events
+ * "1" - Swipes are translated into arrow key events (the default)
+ */
+#define SDL_HINT_APPLE_TV_REMOTE_SWIPES_AS_ARROW_KEYS "SDL_APPLE_TV_REMOTE_SWIPES_AS_ARROW_KEYS"
+
+/**
* \brief A variable controlling whether the Android / iOS built-in
* accelerometer should be listed as a joystick device, rather than listing
* actual joysticks only.