internal/gamepad: remove .errcheck_excludes_windows

Updates #2287
This commit is contained in:
Hajime Hoshi 2022-09-10 02:11:04 +09:00
parent 3253726963
commit b5acb1e53d
2 changed files with 4 additions and 4 deletions

View File

@ -1 +0,0 @@
syscall.Syscall

View File

@ -216,7 +216,7 @@ type _IGameInputDevice_Vtbl struct {
}
func (i *_IGameInputDevice) SetRumbleState(params *_GameInputRumbleParams, timestamp uint64) {
syscall.Syscall(i.vtbl.SetRumbleState, 3, uintptr(unsafe.Pointer(i)), uintptr(unsafe.Pointer(params)), uintptr(timestamp))
_, _, _ = syscall.Syscall(i.vtbl.SetRumbleState, 3, uintptr(unsafe.Pointer(i)), uintptr(unsafe.Pointer(params)), uintptr(timestamp))
runtime.KeepAlive(params)
}
@ -259,6 +259,7 @@ func (i *_IGameInputReading) GetGamepadState() (_GameInputGamepadState, bool) {
return state, int32(r) != 0
}
func (i *_IGameInputReading) Release() {
syscall.Syscall(i.vtbl.Release, 1, uintptr(unsafe.Pointer(i)), 0, 0)
func (i *_IGameInputReading) Release() uint32 {
r, _, _ := syscall.Syscall(i.vtbl.Release, 1, uintptr(unsafe.Pointer(i)), 0, 0)
return uint32(r)
}