ソースを参照

Rename GamepadAxis enum to GamepadAxes (breaking change)

pull/4971/head
M374LX 7ヶ月前
コミット
7e0ef5ae56
2個のファイルの変更2行の追加2行の削除
  1. +1
    -1
      src/platforms/rcore_drm.c
  2. +1
    -1
      src/raylib.h

+ 1
- 1
src/platforms/rcore_drm.c ファイルの表示

@ -1551,7 +1551,7 @@ static void ConfigureEvdevDevice(char *device)
// ABS_X, ABX_Y for one joystick ABS_RX, ABS_RY for the other and the Z axes for the
// shoulder buttons
// If these are now enumerated you get LJOY_X, LJOY_Y, LEFT_SHOULDERB, RJOY_X, ...
// That means they don't match the GamepadAxis enum
// That means they don't match the GamepadAxes enum
// This could be fixed
int axisIndex = 0;
for (int axis = ABS_X; axis < ABS_PRESSURE; axis++)

+ 1
- 1
src/raylib.h ファイルの表示

@ -751,7 +751,7 @@ typedef enum {
GAMEPAD_AXIS_RIGHT_Y = 3, // Gamepad right stick Y axis
GAMEPAD_AXIS_LEFT_TRIGGER = 4, // Gamepad back trigger left, pressure level: [1..-1]
GAMEPAD_AXIS_RIGHT_TRIGGER = 5 // Gamepad back trigger right, pressure level: [1..-1]
} GamepadAxis;
} GamepadAxes;
// Material map index
typedef enum {

読み込み中…
キャンセル
保存