1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-28 11:31:58 +00:00
millfork/include/joy.mfk

16 lines
293 B
Plaintext
Raw Normal View History

2018-12-17 16:18:29 +00:00
// Generic module for joystick/gamepad support
// Horizontal movement: -1 for left, 1 for right
sbyte input_dx
// Vertical movement: -1 for up, 1 for down
sbyte input_dy
// Main button: 1 pressed, 0 not pressed
byte input_btn
void reset_joy() {
input_dx = 0
input_dy = 0
input_btn = 0
}