Handbook
Glossary
reset-mouse ( -- )
Vocabulary
game
.
input
Word description
Resets the mouse state. Future
read-mouse
values will be relative to the time this word is called.
Definition
IN:
game.input
HOOK:
reset-mouse
game-input-backend
( -- )
Methods
USING:
accessors
game.input
game.input.iokit
kernel
namespaces
;
M:
iokit-game-input-backend
reset-mouse
+mouse-state+
get-global
0
>>dx
0
>>dy
0
>>scroll-dx
0
>>scroll-dy
drop
;