Skip to content

Commit

Permalink
Update controller mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
kivutar committed Aug 15, 2021
1 parent 73492fc commit ba35d63
Show file tree
Hide file tree
Showing 2 changed files with 1,148 additions and 0 deletions.
5 changes: 5 additions & 0 deletions input/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
package input

import (
"log"

"github.com/go-gl/glfw/v3.3/glfw"
lr "github.com/libretro/ludo/libretro"
ntf "github.com/libretro/ludo/notifications"
Expand Down Expand Up @@ -65,6 +67,9 @@ var vid *video.Video
// Init initializes the input package
func Init(v *video.Video) {
vid = v
if !glfw.UpdateGamepadMappings(mappings) {
log.Println("Failed to update mappings")
}
glfw.SetJoystickCallback(joystickCallback)
}

Expand Down
Loading

0 comments on commit ba35d63

Please sign in to comment.