mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
3253726963
commit
b5acb1e53d
@ -1 +0,0 @@
|
||||
syscall.Syscall
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user