added support for 'select' key on certain devices (handled as 'return' key)
[rocksndiamonds.git] / src / events.c
index 64fda8081da0fab274d5f3008bb35369d4a5f486..6671041620077893cc02078bc6a72725057c0f64 100644 (file)
@@ -1540,9 +1540,11 @@ void HandleKey(Key key, int key_status)
   int i;
 
 #if defined(TARGET_SDL2)
-  /* map special "play/pause" media key to default key for play/pause actions */
+  /* map special keys (media keys / remote control buttons) to default keys */
   if (key == KSYM_PlayPause)
     key = KSYM_space;
+  else if (key == KSYM_Select)
+    key = KSYM_Return;
 #endif
 
   HandleSpecialGameControllerKeys(key, key_status);