API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IJOYSTICK_READ()

Brew Release
Brew MP 1.0.2
See Also
EVT_JOYSTICK_POS
Description
This function reads signed values of the current joystick x, y positions.
Params
pIJoystick
[]:
Pointer to IJoystick Interface.
px
[]:
Pointer to the signed 16 bit x position value.
py
[]:
Pointer to the signed 16 bit y position value.
Interface
  • IJOYSTICK
Prototype
  •    int IJOYSTICK_Read
       (
       IJoystick * pIJoystick,  
       int16 * px,
       int16 * py
       )
    
Return
  • SUCCESS: Successful. Operation is completed. EFAILED: General failure.
Side Effect
  • None
Comments
In versions of BREW 3.1 and higher this function may be ignored in favor of handling the EVT_JOYSTICK_POS directly. All earlier versions of BREW must use this function to obtain x, y values.