-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platforms/joystick: handle OS differences for dualshock3 and remove h…
…at since it is not handled in the current joystick package Signed-off-by: deadprogram <ron@hybridgroup.com>
- Loading branch information
1 parent
2891173
commit a8e7a3d
Showing
13 changed files
with
180 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,5 +91,4 @@ var dualsenseConfig = joystickConfig{ | |
ID: 15, | ||
}, | ||
}, | ||
Hats: []hat{}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package joystick | ||
|
||
var dualshock3Config = joystickConfig{ | ||
Name: "Dualshock3 Controller", | ||
GUID: "1111", | ||
Axis: []pair{ | ||
{ | ||
Name: "left_x", | ||
ID: 0, | ||
}, | ||
{ | ||
Name: "left_y", | ||
ID: 1, | ||
}, | ||
{ | ||
Name: "right_x", | ||
ID: 2, | ||
}, | ||
{ | ||
Name: "right_y", | ||
ID: 3, | ||
}, | ||
}, | ||
Buttons: []pair{ | ||
{ | ||
Name: "square", | ||
ID: 15, | ||
}, | ||
{ | ||
Name: "triangle", | ||
ID: 12, | ||
}, | ||
{ | ||
Name: "circle", | ||
ID: 13, | ||
}, | ||
{ | ||
Name: "x", | ||
ID: 14, | ||
}, | ||
{ | ||
Name: "up", | ||
ID: 4, | ||
}, | ||
{ | ||
Name: "down", | ||
ID: 6, | ||
}, | ||
{ | ||
Name: "left", | ||
ID: 17, | ||
}, | ||
{ | ||
Name: "right", | ||
ID: 5, | ||
}, | ||
{ | ||
Name: "l1", | ||
ID: 10, | ||
}, | ||
{ | ||
Name: "l2", | ||
ID: 8, | ||
}, | ||
{ | ||
Name: "r1", | ||
ID: 11, | ||
}, | ||
{ | ||
Name: "r2", | ||
ID: 9, | ||
}, | ||
{ | ||
Name: "start", | ||
ID: 3, | ||
}, | ||
{ | ||
Name: "select", | ||
ID: 0, | ||
}, | ||
{ | ||
Name: "home", | ||
ID: 16, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
package joystick | ||
|
||
var dualshock3Config = joystickConfig{ | ||
Name: "Dualshock3 Controller", | ||
GUID: "1111", | ||
Axis: []pair{ | ||
{ | ||
Name: "left_x", | ||
ID: 0, | ||
}, | ||
{ | ||
Name: "left_y", | ||
ID: 1, | ||
}, | ||
{ | ||
Name: "l2", | ||
ID: 2, | ||
}, | ||
{ | ||
Name: "right_x", | ||
ID: 3, | ||
}, | ||
{ | ||
Name: "right_y", | ||
ID: 4, | ||
}, | ||
{ | ||
Name: "r2", | ||
ID: 5, | ||
}, | ||
}, | ||
Buttons: []pair{ | ||
{ | ||
Name: "square", | ||
ID: 3, | ||
}, | ||
{ | ||
Name: "triangle", | ||
ID: 2, | ||
}, | ||
{ | ||
Name: "circle", | ||
ID: 1, | ||
}, | ||
{ | ||
Name: "x", | ||
ID: 0, | ||
}, | ||
{ | ||
Name: "up", | ||
ID: 13, | ||
}, | ||
{ | ||
Name: "down", | ||
ID: 14, | ||
}, | ||
{ | ||
Name: "left", | ||
ID: 15, | ||
}, | ||
{ | ||
Name: "right", | ||
ID: 16, | ||
}, | ||
{ | ||
Name: "l1", | ||
ID: 4, | ||
}, | ||
{ | ||
Name: "l2", | ||
ID: 6, | ||
}, | ||
{ | ||
Name: "r1", | ||
ID: 5, | ||
}, | ||
{ | ||
Name: "r2", | ||
ID: 7, | ||
}, | ||
{ | ||
Name: "start", | ||
ID: 9, | ||
}, | ||
{ | ||
Name: "select", | ||
ID: 8, | ||
}, | ||
{ | ||
Name: "home", | ||
ID: 10, | ||
}, | ||
}, | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,5 +111,4 @@ var joyconPairConfig = joystickConfig{ | |
ID: 6, | ||
}, | ||
}, | ||
Hats: []hat{}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,5 +54,4 @@ var xbox360RockBandDrumsConfig = joystickConfig{ | |
ID: 14, | ||
}, | ||
}, | ||
Hats: []hat{}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters