Adding support for the "media" play/pause/stop/next/prev buttons
[blender.git] / source / blender / windowmanager / intern / wm_event_system.c
index af78e7113f7a40d8acc6cb57a3db4126c270b259..39a6e5b27b52e8e130f5012fbc462e6b0b5481e1 100644 (file)
@@ -2196,7 +2196,12 @@ static int convert_key(GHOST_TKey key)
                        case GHOST_kKeyNumpadSlash:             return PADSLASHKEY;
                                
                        case GHOST_kKeyGrLess:              return GRLESSKEY; 
-                               
+                       
+                       case GHOST_kKeyMediaPlay:               return MEDIAPLAY;
+                       case GHOST_kKeyMediaStop:               return MEDIASTOP;
+                       case GHOST_kKeyMediaFirst:              return MEDIAFIRST;
+                       case GHOST_kKeyMediaLast:               return MEDIALAST;
+                       
                        default:
                                return UNKNOWNKEY;      /* GHOST_kKeyUnknown */
                }