change all references to SDLK_xxxxx to KEY_xxxx
+ some fixes
This commit is contained in:
18
src/input.h
18
src/input.h
@@ -26,6 +26,11 @@
|
||||
/// pointing device, ie: the GP2X.
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef INPUT_H_INCLUDED
|
||||
#define INPUT_H_INCLUDED
|
||||
|
||||
#include "keycodes.h"
|
||||
|
||||
///
|
||||
/// This is the keyboard/mouse/joystick input polling function.
|
||||
/// Returns 1 if a significant changed occurred, such as a mouse button pressed
|
||||
@@ -70,18 +75,19 @@ extern int Snap_axis_origin_Y;
|
||||
extern char * Drop_file_name;
|
||||
|
||||
#if defined __HAIKU__
|
||||
#define SHORTCUT_COPY (SDLK_c|MOD_ALT)
|
||||
#define SHORTCUT_COPY (KEY_c|MOD_ALT)
|
||||
#elif defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__) || defined(__amigaos__)
|
||||
#define SHORTCUT_COPY (SDLK_c|MOD_META)
|
||||
#define SHORTCUT_COPY (KEY_c|MOD_META)
|
||||
#else
|
||||
#define SHORTCUT_COPY (SDLK_c|MOD_CTRL)
|
||||
#define SHORTCUT_COPY (KEY_c|MOD_CTRL)
|
||||
#endif
|
||||
|
||||
#if defined __HAIKU__
|
||||
#define SHORTCUT_PASTE (SDLK_v|MOD_ALT)
|
||||
#define SHORTCUT_PASTE (KEY_v|MOD_ALT)
|
||||
#elif defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__) || defined(__amigaos__)
|
||||
#define SHORTCUT_PASTE (SDLK_v|MOD_META)
|
||||
#define SHORTCUT_PASTE (KEY_v|MOD_META)
|
||||
#else
|
||||
#define SHORTCUT_PASTE (SDLK_v|MOD_CTRL)
|
||||
#define SHORTCUT_PASTE (KEY_v|MOD_CTRL)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user