Skip to content

Commit

Permalink
Merge pull request #1486 from wselken/main
Browse files Browse the repository at this point in the history
Increasing Max Gamepad Limit to 8.
  • Loading branch information
RobDangerous authored Jan 22, 2024
2 parents 88687aa + d4f4e3b commit 3227f78
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 3227f78

Please sign in to comment.