Commit 497610a4 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Replace big define by enum in vlc_keys.h

parent 40f255a1
...@@ -233,107 +233,108 @@ static inline int StringToKey( char *psz_key ) ...@@ -233,107 +233,108 @@ static inline int StringToKey( char *psz_key )
return 0; return 0;
} }
enum {
#define ACTIONID_QUIT 1 ACTIONID_QUIT = 1,
#define ACTIONID_PLAY_PAUSE 2 ACTIONID_PLAY_PAUSE,
#define ACTIONID_PLAY 3 ACTIONID_PLAY,
#define ACTIONID_PAUSE 4 ACTIONID_PAUSE,
#define ACTIONID_STOP 5 ACTIONID_STOP,
#define ACTIONID_PREV 6 ACTIONID_PREV,
#define ACTIONID_NEXT 7 ACTIONID_NEXT,
#define ACTIONID_SLOWER 8 ACTIONID_SLOWER,
#define ACTIONID_FASTER 9 ACTIONID_FASTER,
#define ACTIONID_TOGGLE_FULLSCREEN 10 ACTIONID_TOGGLE_FULLSCREEN,
#define ACTIONID_VOL_UP 11 ACTIONID_VOL_UP,
#define ACTIONID_VOL_DOWN 12 ACTIONID_VOL_DOWN,
#define ACTIONID_NAV_ACTIVATE 13 ACTIONID_NAV_ACTIVATE,
#define ACTIONID_NAV_UP 14 ACTIONID_NAV_UP,
#define ACTIONID_NAV_DOWN 15 ACTIONID_NAV_DOWN,
#define ACTIONID_NAV_LEFT 16 ACTIONID_NAV_LEFT,
#define ACTIONID_NAV_RIGHT 17 ACTIONID_NAV_RIGHT,
#define ACTIONID_JUMP_BACKWARD_EXTRASHORT 18 ACTIONID_JUMP_BACKWARD_EXTRASHORT,
#define ACTIONID_JUMP_FORWARD_EXTRASHORT 19 ACTIONID_JUMP_FORWARD_EXTRASHORT,
#define ACTIONID_JUMP_BACKWARD_SHORT 20 ACTIONID_JUMP_BACKWARD_SHORT,
#define ACTIONID_JUMP_FORWARD_SHORT 21 ACTIONID_JUMP_FORWARD_SHORT,
#define ACTIONID_JUMP_BACKWARD_MEDIUM 22 ACTIONID_JUMP_BACKWARD_MEDIUM,
#define ACTIONID_JUMP_FORWARD_MEDIUM 23 ACTIONID_JUMP_FORWARD_MEDIUM,
#define ACTIONID_JUMP_BACKWARD_LONG 24 ACTIONID_JUMP_BACKWARD_LONG,
#define ACTIONID_JUMP_FORWARD_LONG 25 ACTIONID_JUMP_FORWARD_LONG,
#define ACTIONID_POSITION 26 ACTIONID_POSITION,
#define ACTIONID_VOL_MUTE 27 ACTIONID_VOL_MUTE,
/* let ACTIONID_SET_BOOMARK* and ACTIONID_PLAY_BOOKMARK* be contiguous */ /* let ACTIONID_SET_BOOMARK* and ACTIONID_PLAY_BOOKMARK* be contiguous */
#define ACTIONID_SET_BOOKMARK1 28 ACTIONID_SET_BOOKMARK1,
#define ACTIONID_SET_BOOKMARK2 29 ACTIONID_SET_BOOKMARK2,
#define ACTIONID_SET_BOOKMARK3 39 ACTIONID_SET_BOOKMARK3,
#define ACTIONID_SET_BOOKMARK4 31 ACTIONID_SET_BOOKMARK4,
#define ACTIONID_SET_BOOKMARK5 32 ACTIONID_SET_BOOKMARK5,
#define ACTIONID_SET_BOOKMARK6 33 ACTIONID_SET_BOOKMARK6,
#define ACTIONID_SET_BOOKMARK7 34 ACTIONID_SET_BOOKMARK7,
#define ACTIONID_SET_BOOKMARK8 35 ACTIONID_SET_BOOKMARK8,
#define ACTIONID_SET_BOOKMARK9 36 ACTIONID_SET_BOOKMARK9,
#define ACTIONID_SET_BOOKMARK10 37 ACTIONID_SET_BOOKMARK10,
#define ACTIONID_PLAY_BOOKMARK1 38 ACTIONID_PLAY_BOOKMARK1,
#define ACTIONID_PLAY_BOOKMARK2 39 ACTIONID_PLAY_BOOKMARK2,
#define ACTIONID_PLAY_BOOKMARK3 40 ACTIONID_PLAY_BOOKMARK3,
#define ACTIONID_PLAY_BOOKMARK4 41 ACTIONID_PLAY_BOOKMARK4,
#define ACTIONID_PLAY_BOOKMARK5 42 ACTIONID_PLAY_BOOKMARK5,
#define ACTIONID_PLAY_BOOKMARK6 43 ACTIONID_PLAY_BOOKMARK6,
#define ACTIONID_PLAY_BOOKMARK7 44 ACTIONID_PLAY_BOOKMARK7,
#define ACTIONID_PLAY_BOOKMARK8 45 ACTIONID_PLAY_BOOKMARK8,
#define ACTIONID_PLAY_BOOKMARK9 46 ACTIONID_PLAY_BOOKMARK9,
#define ACTIONID_PLAY_BOOKMARK10 47 ACTIONID_PLAY_BOOKMARK10,
/* end of contiguous zone */ /* end of contiguous zone */
#define ACTIONID_SUBDELAY_UP 48 ACTIONID_SUBDELAY_UP,
#define ACTIONID_SUBDELAY_DOWN 49 ACTIONID_SUBDELAY_DOWN,
#define ACTIONID_HISTORY_BACK 50 ACTIONID_HISTORY_BACK,
#define ACTIONID_HISTORY_FORWARD 51 ACTIONID_HISTORY_FORWARD,
#define ACTIONID_AUDIO_TRACK 52 ACTIONID_AUDIO_TRACK,
#define ACTIONID_SUBTITLE_TRACK 53 ACTIONID_SUBTITLE_TRACK,
#define ACTIONID_CUBESPEED_UP 54 ACTIONID_CUBESPEED_UP,
#define ACTIONID_CUBESPEED_DOWN 55 ACTIONID_CUBESPEED_DOWN,
#define ACTIONID_INTF_SHOW 56 ACTIONID_INTF_SHOW,
#define ACTIONID_INTF_HIDE 57 ACTIONID_INTF_HIDE,
/* chapter and title navigation */ /* chapter and title navigation */
#define ACTIONID_TITLE_PREV 58 ACTIONID_TITLE_PREV,
#define ACTIONID_TITLE_NEXT 59 ACTIONID_TITLE_NEXT,
#define ACTIONID_CHAPTER_PREV 60 ACTIONID_CHAPTER_PREV,
#define ACTIONID_CHAPTER_NEXT 61 ACTIONID_CHAPTER_NEXT,
/* end of chapter and title navigation */ /* end of chapter and title navigation */
#define ACTIONID_AUDIODELAY_UP 62 ACTIONID_AUDIODELAY_UP,
#define ACTIONID_AUDIODELAY_DOWN 63 ACTIONID_AUDIODELAY_DOWN,
#define ACTIONID_SNAPSHOT 64 ACTIONID_SNAPSHOT,
#define ACTIONID_RECORD 65 ACTIONID_RECORD,
#define ACTIONID_DISC_MENU 66 ACTIONID_DISC_MENU,
#define ACTIONID_ASPECT_RATIO 67 ACTIONID_ASPECT_RATIO,
#define ACTIONID_CROP 68 ACTIONID_CROP,
#define ACTIONID_DEINTERLACE 69 ACTIONID_DEINTERLACE,
#define ACTIONID_ZOOM 70 ACTIONID_ZOOM,
#define ACTIONID_UNZOOM 71 ACTIONID_UNZOOM,
#define ACTIONID_CROP_TOP 72 ACTIONID_CROP_TOP,
#define ACTIONID_UNCROP_TOP 73 ACTIONID_UNCROP_TOP,
#define ACTIONID_CROP_LEFT 74 ACTIONID_CROP_LEFT,
#define ACTIONID_UNCROP_LEFT 75 ACTIONID_UNCROP_LEFT,
#define ACTIONID_CROP_BOTTOM 76 ACTIONID_CROP_BOTTOM,
#define ACTIONID_UNCROP_BOTTOM 77 ACTIONID_UNCROP_BOTTOM,
#define ACTIONID_CROP_RIGHT 78 ACTIONID_CROP_RIGHT,
#define ACTIONID_UNCROP_RIGHT 79 ACTIONID_UNCROP_RIGHT,
#define ACTIONID_DUMP 80 ACTIONID_DUMP,
#define ACTIONID_RANDOM 81 ACTIONID_RANDOM,
#define ACTIONID_LOOP 82 ACTIONID_LOOP,
#define ACTIONID_WALLPAPER 83 ACTIONID_WALLPAPER,
#define ACTIONID_LEAVE_FULLSCREEN 84 ACTIONID_LEAVE_FULLSCREEN,
#define ACTIONID_MENU_ON 85 ACTIONID_MENU_ON,
#define ACTIONID_MENU_OFF 86 ACTIONID_MENU_OFF,
#define ACTIONID_MENU_RIGHT 87 ACTIONID_MENU_RIGHT,
#define ACTIONID_MENU_LEFT 88 ACTIONID_MENU_LEFT,
#define ACTIONID_MENU_UP 89 ACTIONID_MENU_UP,
#define ACTIONID_MENU_DOWN 90 ACTIONID_MENU_DOWN,
#define ACTIONID_MENU_SELECT 91 ACTIONID_MENU_SELECT,
/* Zoom */ /* Zoom */
#define ACTIONID_ZOOM_QUARTER 92 ACTIONID_ZOOM_QUARTER,
#define ACTIONID_ZOOM_HALF 93 ACTIONID_ZOOM_HALF,
#define ACTIONID_ZOOM_ORIGINAL 94 ACTIONID_ZOOM_ORIGINAL,
#define ACTIONID_ZOOM_DOUBLE 95 ACTIONID_ZOOM_DOUBLE,
/* Cycle Through Audio Devices */ /* Cycle Through Audio Devices */
#define ACTIONID_AUDIODEVICE_CYCLE 96 ACTIONID_AUDIODEVICE_CYCLE
};
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment