Some small updates to joystick.h
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26763 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -16,12 +16,25 @@
|
|||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
|
|
||||||
|
#define DEBUG
|
||||||
|
|
||||||
class BList;
|
class BList;
|
||||||
class BString;
|
class BString;
|
||||||
struct entry_ref;
|
struct entry_ref;
|
||||||
struct _extended_joystick;
|
struct _extended_joystick;
|
||||||
class _BJoystickTweaker;
|
class _BJoystickTweaker;
|
||||||
|
|
||||||
|
typedef struct _joystick_info {
|
||||||
|
char module_name[64];
|
||||||
|
char controller_name[64];
|
||||||
|
int16 num_axes;
|
||||||
|
int16 num_buttons;
|
||||||
|
int16 num_hats;
|
||||||
|
uint32 num_sticks;
|
||||||
|
bool calibration_enable;
|
||||||
|
bigtime_t max_latency;
|
||||||
|
} joystick_info;
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------*/
|
/* -----------------------------------------------------------------------*/
|
||||||
class BJoystick {
|
class BJoystick {
|
||||||
|
|
||||||
@@ -89,8 +102,9 @@ virtual void Calibrate(
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
friend class _BJoystickTweaker;
|
friend class _BJoystickTweaker;
|
||||||
|
//friend class JoyCalib; //Added from Zeta
|
||||||
|
|
||||||
struct _joystick_info;
|
// struct _joystick_info;
|
||||||
|
|
||||||
void ScanDevices(
|
void ScanDevices(
|
||||||
bool use_disabled = false);
|
bool use_disabled = false);
|
||||||
@@ -109,10 +123,17 @@ virtual void _ReservedJoystick3();
|
|||||||
BList * _fDevices;
|
BList * _fDevices;
|
||||||
_joystick_info * m_info;
|
_joystick_info * m_info;
|
||||||
char * m_dev_name;
|
char * m_dev_name;
|
||||||
|
#if !_PR3_COMPATIBLE_ //if statment added from Zeta
|
||||||
virtual status_t _Reserved_Joystick_4(void *, ...);
|
virtual status_t _Reserved_Joystick_4(void *, ...);
|
||||||
virtual status_t _Reserved_Joystick_5(void *, ...);
|
virtual status_t _Reserved_Joystick_5(void *, ...);
|
||||||
virtual status_t _Reserved_Joystick_6(void *, ...);
|
virtual status_t _Reserved_Joystick_6(void *, ...);
|
||||||
uint32 _reserved_Joystick_[10];
|
uint32 _reserved_Joystick_[10];
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
public:
|
||||||
|
static FILE *sLogFile;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user