[#18840] Joystick sensor lag
if(SDL_PollEvent(&sdl_event)) // if -> while fixed it removed 'm_buttonnum' was misleading, wasn't used as you expect. Added gravity to variable to world to be used by collada.
This commit is contained in:
@@ -44,6 +44,7 @@ class SCA_Joystick
|
||||
|
||||
{
|
||||
static SCA_Joystick *m_instance[JOYINDEX_MAX];
|
||||
static int m_joynum;
|
||||
static int m_refCount;
|
||||
|
||||
class PrivateData;
|
||||
@@ -67,11 +68,6 @@ class SCA_Joystick
|
||||
*/
|
||||
int m_prec;
|
||||
|
||||
/*
|
||||
* button values stored here
|
||||
*/
|
||||
int m_buttonnum;
|
||||
|
||||
/*
|
||||
* max # of buttons avail
|
||||
*/
|
||||
@@ -146,7 +142,6 @@ public:
|
||||
bool aAxisIsPositive(int axis_single); /* check a single axis only */
|
||||
|
||||
bool aAnyButtonPressIsPositive(void);
|
||||
bool aAnyButtonReleaseIsPositive(void);
|
||||
bool aButtonPressIsPositive(int button);
|
||||
bool aButtonReleaseIsPositive(int button);
|
||||
bool aHatIsPositive(int hatnum, int dir);
|
||||
@@ -160,10 +155,6 @@ public:
|
||||
int GetAxisPosition(int index){
|
||||
return m_axis_array[index];
|
||||
}
|
||||
|
||||
int GetButton(void){
|
||||
return m_buttonnum;
|
||||
}
|
||||
|
||||
int GetHat(int index){
|
||||
return m_hat_array[index];
|
||||
|
Reference in New Issue
Block a user