2013-12-07 06:55:00 +00:00
|
|
|
/*
|
|
|
|
* Apple // emulator for *nix
|
|
|
|
*
|
|
|
|
* This software package is subject to the GNU General Public License
|
|
|
|
* version 2 or later (your choice) as published by the Free Software
|
|
|
|
* Foundation.
|
|
|
|
*
|
|
|
|
* THERE ARE NO WARRANTIES WHATSOEVER.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 65c02 CPU Timing Support.
|
|
|
|
*
|
|
|
|
* Copyleft 2013 Aaron Culliney
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _JOYSTICK_H_
|
|
|
|
#define _JOYSTICK_H_
|
|
|
|
|
2013-12-21 23:25:02 +00:00
|
|
|
#define JOY_RANGE 0x100
|
|
|
|
#define HALF_JOY_RANGE 0x80
|
|
|
|
|
2014-10-19 19:54:03 +00:00
|
|
|
extern uint16_t joy_x;
|
|
|
|
extern uint16_t joy_y;
|
|
|
|
extern uint8_t joy_button0;
|
|
|
|
extern uint8_t joy_button1;
|
|
|
|
extern uint8_t joy_button2;
|
|
|
|
|
|
|
|
#ifdef KEYPAD_JOYSTICK
|
|
|
|
extern uint8_t joy_auto_recenter;
|
|
|
|
extern short joy_step;
|
|
|
|
#endif
|
2014-05-10 20:08:44 +00:00
|
|
|
|
2014-10-25 19:51:09 +00:00
|
|
|
void c_joystick_reset(void);
|
2014-11-09 21:13:27 +00:00
|
|
|
#ifdef INTERFACE_CLASSIC
|
|
|
|
void c_calibrate_joystick(void);
|
|
|
|
#endif
|
2013-12-07 06:55:00 +00:00
|
|
|
|
|
|
|
#endif // whole file
|