/* Web64 SDK header printout: joystick.h * Generated by scripts/copy-web64-ide-source.mjs. * The IDE resolves this header as a read-only virtual SDK document. */ #ifndef WEB64_JOYSTICK_H #define WEB64_JOYSTICK_H #include #include #define JOY_1 1 #define JOY_2 2 #define JOY_BTN_1 JOY_FIRE /* Raw active-low CIA sample: zero input bit = pressed; one = released. */ /* Use JOY_1 or JOY_2. Example: uint8_t joy = web64_joy_read(JOY_2); */ /* if ((joy & JOY_FIRE) == 0) { ... } JOY_LEFT/JOY_RIGHT use the same test. */ extern _fastcall uint8_t joy_read(uint8_t port); extern _fastcall uint8_t web64_joy_read(uint8_t port); #endif