mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
parent
043397c20e
commit
129f201be4
File diff suppressed because one or more lines are too long
@ -18,13 +18,12 @@
|
||||
//
|
||||
// curl --location --remote-name https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt
|
||||
|
||||
//go:generate go run github.com/hajimehoshi/file2byteslice/cmd/file2byteslice@v1.0.0 -package gamepaddb -input=./gamecontrollerdb.txt -output=./gamecontrollerdb.txt.go -var=gamecontrollerdbTxt
|
||||
|
||||
package gamepaddb
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
_ "embed"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"runtime"
|
||||
@ -33,6 +32,9 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
//go:embed gamecontrollerdb.txt
|
||||
var gamecontrollerdb_txt []byte
|
||||
|
||||
type platform int
|
||||
|
||||
const (
|
||||
@ -92,7 +94,7 @@ var additionalGLFWGamepads = []byte(`
|
||||
`)
|
||||
|
||||
func init() {
|
||||
if err := Update(gamecontrollerdbTxt); err != nil {
|
||||
if err := Update(gamecontrollerdb_txt); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if err := Update(additionalGLFWGamepads); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user