}\r
\r
public OisPov getPov (int povIndex) {\r
- if(povIndex < 0 || povIndex >= axes.length) return OisPov.Centered;\r
+ if(povIndex < 0 || povIndex >= povs.length) return OisPov.Centered;\r
switch (povs[povIndex]) {\r
case 0x00000000:\r
return OisPov.Centered;\r
}\r
\r
public boolean isButtonPressed (int buttonIndex) {\r
- if(buttonIndex < 0 || buttonIndex >= axes.length) return false;\r
+ if(buttonIndex < 0 || buttonIndex >= buttons.length) return false;\r
return buttons[buttonIndex];\r
}\r
\r
public boolean getSliderX (int sliderIndex) {\r
- if(sliderIndex < 0 || sliderIndex >= axes.length) return false;\r
+ if(sliderIndex < 0 || sliderIndex >= slidersX.length) return false;\r
\r
return slidersX[sliderIndex];\r
}\r
\r
public boolean getSliderY (int sliderIndex) {\r
- if(sliderIndex < 0 || sliderIndex >= axes.length) return false;\r
+ if(sliderIndex < 0 || sliderIndex >= slidersY.length) return false;\r
return slidersY[sliderIndex];\r
}\r
\r