Skip to content

Commit

Permalink
Increasing Max Gamepad Limit to 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
wselken committed Jan 21, 2024
1 parent 88687aa commit d4f4e3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Backends/Kinc-HL/kha/SystemImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SystemImpl {
mouse = new kha.input.MouseImpl();
pen = new kha.input.Pen();
gamepads = new Array<Gamepad>();
for (i in 0...4) {
for (i in 0...8) {
gamepads[i] = new kha.input.Gamepad(i);
gamepads[i].connected = kinc_gamepad_connected(i);
}
Expand Down
2 changes: 1 addition & 1 deletion Backends/Kinc-hxcpp/kha/SystemImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class SystemImpl {
mouse = new kha.input.MouseImpl();
pen = new kha.input.Pen();
gamepads = new Array<Gamepad>();
for (i in 0...4) {
for (i in 0...8) {
gamepads[i] = new Gamepad(i);
gamepads[i].connected = checkGamepadConnected(i);
}
Expand Down
2 changes: 1 addition & 1 deletion Backends/Krom/kha/SystemImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SystemImpl {
static var keyboard: Keyboard;
static var mouse: Mouse;
static var pen: Pen;
static var maxGamepads: Int = 4;
static var maxGamepads: Int = 8;
static var gamepads: Array<Gamepad>;
static var mouseLockListeners: Array<Void->Void> = [];

Expand Down

0 comments on commit d4f4e3b

Please sign in to comment.