mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/gamepad: clean up codes for Darwin
* Removes redundant assignments. * Fixes types for the Apple libraries. Updates #1162
This commit is contained in:
parent
4a569be6f6
commit
b13fa2817c
@ -110,7 +110,7 @@ func _CFRunLoopGetMain() _CFRunLoopRef {
|
||||
}
|
||||
|
||||
func _CFRunLoopRunInMode(mode _CFRunLoopMode, seconds _CFTimeInterval, returnAfterSourceHandled bool) _CFRunLoopRunResult {
|
||||
var b uintptr = 0
|
||||
var b uintptr
|
||||
if returnAfterSourceHandled {
|
||||
b = 1
|
||||
}
|
||||
|
@ -79,8 +79,8 @@ type _IOHIDManagerRef uintptr
|
||||
type _IOHIDDeviceRef uintptr
|
||||
type _IOHIDElementRef uintptr
|
||||
type _IOHIDValueRef uintptr
|
||||
type _IOReturn int
|
||||
type _IOHIDElementType uint
|
||||
type _IOReturn int32
|
||||
type _IOHIDElementType uint32
|
||||
|
||||
type _IOHIDDeviceCallback func(context unsafe.Pointer, result _IOReturn, sender unsafe.Pointer, device _IOHIDDeviceRef)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user