mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-19 08:41:16 +00:00
Added SNES-style GAMEPAD SUPPORT
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user