-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Unhardcode some input vars * Use GLFW pad mappings * Remove unused types * Clean
- Loading branch information
Showing
5 changed files
with
77 additions
and
444 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
package input | ||
|
||
import ( | ||
"github.com/go-gl/glfw/v3.3/glfw" | ||
"github.com/libretro/ludo/libretro" | ||
) | ||
|
||
var joyBinds = map[glfw.GamepadButton]uint32{ | ||
glfw.ButtonDpadUp: libretro.DeviceIDJoypadUp, | ||
glfw.ButtonDpadDown: libretro.DeviceIDJoypadDown, | ||
glfw.ButtonDpadLeft: libretro.DeviceIDJoypadLeft, | ||
glfw.ButtonDpadRight: libretro.DeviceIDJoypadRight, | ||
|
||
glfw.ButtonCircle: libretro.DeviceIDJoypadA, | ||
glfw.ButtonCross: libretro.DeviceIDJoypadB, | ||
glfw.ButtonSquare: libretro.DeviceIDJoypadY, | ||
glfw.ButtonTriangle: libretro.DeviceIDJoypadX, | ||
|
||
glfw.ButtonLeftBumper: libretro.DeviceIDJoypadL, | ||
glfw.ButtonRightBumper: libretro.DeviceIDJoypadR, | ||
|
||
glfw.ButtonLeftThumb: libretro.DeviceIDJoypadL3, | ||
glfw.ButtonRightThumb: libretro.DeviceIDJoypadR3, | ||
|
||
glfw.ButtonStart: libretro.DeviceIDJoypadStart, | ||
glfw.ButtonBack: libretro.DeviceIDJoypadSelect, | ||
glfw.ButtonGuide: ActionMenuToggle, | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.