Update URLs

This commit is contained in:
Hajime Hoshi 2021-07-19 23:09:27 +09:00
parent f305a04453
commit fcfdf9b2ba
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ func (i *Input) CursorPosition() (x, y int) {
func (i *Input) GamepadSDLID(id driver.GamepadID) string {
// This emulates the implementation of EMSCRIPTEN_JoystickGetDeviceGUID.
// https://hg.libsdl.org/SDL/file/bc90ce38f1e2/src/joystick/emscripten/SDL_sysjoystick.c#l385
// https://github.com/libsdl-org/SDL/blob/0e9560aea22818884921e5e5064953257bfe7fa7/src/joystick/emscripten/SDL_sysjoystick.c#L385
g, ok := i.gamepads[id]
if !ok {
return ""

View File

@ -275,7 +275,7 @@ func OnGamepadAxesChanged(deviceID int, axisID int, value float32) {
func OnGamepadAdded(deviceID int, name string, buttonNum int, axisNum int, descriptor string, vendorID int, productID int, buttonMask int, axisMask int) {
// This emulates the implementation of Android_AddJoystick.
// https://hg.libsdl.org/SDL/file/bc90ce38f1e2/src/joystick/android/SDL_sysjoystick.c#l386
// https://github.com/libsdl-org/SDL/blob/0e9560aea22818884921e5e5064953257bfe7fa7/src/joystick/android/SDL_sysjoystick.c#L386
const SDL_HARDWARE_BUS_BLUETOOTH = 0x05
var sdlid [16]byte