Handbook
Glossary
(open-game-input) ( -- )
Vocabulary
game
.
input
Inputs
None
Outputs
None
Definition
IN:
game.input
HOOK:
(open-game-input)
game-input-backend
( -- )
Methods
USING:
combinators
core-foundation.run-loop
game.input
game.input.iokit
iokit
iokit.hid
;
M:
iokit-game-input-backend
(open-game-input)
make-hid-manager
{
[
initialize-variables
]
[
device-matched-callback
f
IOHIDManagerRegisterDeviceMatchingCallback
]
[
device-removed-callback
f
IOHIDManagerRegisterDeviceRemovalCallback
]
[
device-input-callback
f
IOHIDManagerRegisterInputValueCallback
]
[
0
IOHIDManagerOpen
mach-error
]
[
game-devices-matching-seq
set-hid-manager-matching
]
[
CFRunLoopGetMain
CFRunLoopDefaultMode
IOHIDManagerScheduleWithRunLoop
]
}
cleave
;