|
|
@@ -5,6 +5,7 @@ |
|
|
|
#include <SDL_gamecontroller.h> |
|
|
|
#include <SDL_events.h> |
|
|
|
#include <minIni.h> |
|
|
|
#include "../../common/IZ_common.h" |
|
|
|
#include "../../config/IZ_config.h" |
|
|
|
#include "../../stdinc/IZ_string.h" |
|
|
|
#include "../../stdinc/IZ_stdlib.h" |
|
|
@@ -12,7 +13,7 @@ |
|
|
|
|
|
|
|
typedef u8 IZ_PadButton; |
|
|
|
|
|
|
|
static const u16 IZ_DEFAULT_AXIS_THRESHOLD = 8000; |
|
|
|
#define IZ_DEFAULT_AXIS_THRESHOLD ((u16) 8000) |
|
|
|
|
|
|
|
typedef enum { |
|
|
|
IZ_JOY_AXIS_DIRECTION_HORIZONTAL1 = 0, |
|
|
@@ -56,7 +57,7 @@ static const IZ_JoystickState IZ_JOYSTICK_DEFAULT_STATE[IZ_PLAYERS] = { |
|
|
|
13, |
|
|
|
14, |
|
|
|
}, |
|
|
|
.axis_threshold = 8000u, |
|
|
|
.axis_threshold = IZ_DEFAULT_AXIS_THRESHOLD, |
|
|
|
.device_id = 0, |
|
|
|
.guid = { |
|
|
|
.data = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } |
|
|
|