diff options
| author | Seth Archambault <[email protected]> | 2018-07-06 13:33:46 -0400 |
|---|---|---|
| committer | Seth Archambault <[email protected]> | 2018-07-06 13:33:46 -0400 |
| commit | f981daf1df4b89303724ac883007166d0627730c (patch) | |
| tree | 15c559b661dc719a85cbbf811cc6186a3a732491 /release | |
| parent | 0ab3d85aa04d76f09f224927faad5b1a8a730bce (diff) | |
| download | raylib-f981daf1df4b89303724ac883007166d0627730c.tar.gz raylib-f981daf1df4b89303724ac883007166d0627730c.zip | |
Added SNES-style GAMEPAD SUPPORT
Diffstat (limited to 'release')
| -rw-r--r-- | release/include/raylib.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/release/include/raylib.h b/release/include/raylib.h index 85b73ba7..b68a36c6 100644 --- a/release/include/raylib.h +++ b/release/include/raylib.h @@ -241,6 +241,24 @@ #define GAMEPAD_XBOX_BUTTON_LEFT 13 #define GAMEPAD_XBOX_BUTTON_HOME 8 +// 8BitDo Gamepad SNES CLASSIC +#define GAMEPAD_SNES_DPAD_UP 19 +#define GAMEPAD_SNES_DPAD_DOWN 20 +#define GAMEPAD_SNES_DPAD_LEFT 21 +#define GAMEPAD_SNES_DPAD_RIGHT 22 +#define GAMEPAD_SNES_DPAD_CENTER 23 + +#define GAMEPAD_SNES_BUTTON_A 96 +#define GAMEPAD_SNES_BUTTON_B 97 +#define GAMEPAD_SNES_BUTTON_C 98 +#define GAMEPAD_SNES_BUTTON_X 99 +#define GAMEPAD_SNES_BUTTON_Y 100 +#define GAMEPAD_SNES_BUTTON_Z 101 +#define GAMEPAD_SNES_BUTTON_L1 102 +#define GAMEPAD_SNES_BUTTON_R1 103 +#define GAMEPAD_SNES_BUTTON_L2 104 +#define GAMEPAD_SNES_BUTTON_R2 105 + // Xbox360 USB Controller Axis // NOTE: For Raspberry Pi, axis must be reconfigured #if defined(PLATFORM_RPI) @@ -966,7 +984,7 @@ RLAPI void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle dest //------------------------------------------------------------------------------------ // Font loading/unloading functions -RLAPI Font GetFontDefault(void); // Get the default Font +RLAPI Font GetFontDefault(void); // Get the default Font RLAPI Font LoadFont(const char *fileName); // Load font from file into GPU memory (VRAM) RLAPI Font LoadFontEx(const char *fileName, int fontSize, int charsCount, int *fontChars); // Load font from file with extended parameters RLAPI CharInfo *LoadFontData(const char *fileName, int fontSize, int *fontChars, int charsCount, bool sdf); // Load font data for further use |
