orx
1.14
Portable Game Engine
|
Macros | |
#define | orxMOUSE_KZ_CONFIG_GRAB "Grab" |
#define | orxMOUSE_KZ_CONFIG_SECTION "Mouse" |
#define | orxMOUSE_KZ_CONFIG_SHOW_CURSOR "ShowCursor" |
Enumerations | |
enum | orxMOUSE_AXIS { orxMOUSE_AXIS_X = 0, orxMOUSE_AXIS_Y, orxMOUSE_AXIS_NUMBER, orxMOUSE_AXIS_NONE = orxENUM_NONE } |
enum | orxMOUSE_BUTTON { orxMOUSE_BUTTON_LEFT = 0, orxMOUSE_BUTTON_RIGHT, orxMOUSE_BUTTON_MIDDLE, orxMOUSE_BUTTON_EXTRA_1, orxMOUSE_BUTTON_EXTRA_2, orxMOUSE_BUTTON_EXTRA_3, orxMOUSE_BUTTON_EXTRA_4, orxMOUSE_BUTTON_EXTRA_5, orxMOUSE_BUTTON_WHEEL_UP, orxMOUSE_BUTTON_WHEEL_DOWN, orxMOUSE_BUTTON_NUMBER, orxMOUSE_BUTTON_NONE = orxENUM_NONE } |
Functions | |
orxDLLAPI void orxFASTCALL | orxMouse_Exit () |
orxDLLAPI const orxSTRING orxFASTCALL | orxMouse_GetAxisName (orxMOUSE_AXIS _eAxis) |
orxDLLAPI const orxSTRING orxFASTCALL | orxMouse_GetButtonName (orxMOUSE_BUTTON _eButton) |
orxDLLAPI orxVECTOR *orxFASTCALL | orxMouse_GetMoveDelta (orxVECTOR *_pvMoveDelta) |
orxDLLAPI orxVECTOR *orxFASTCALL | orxMouse_GetPosition (orxVECTOR *_pvPosition) |
orxDLLAPI orxFLOAT orxFASTCALL | orxMouse_GetWheelDelta () |
orxDLLAPI orxSTATUS orxFASTCALL | orxMouse_Grab (orxBOOL _bGrab) |
orxDLLAPI orxSTATUS orxFASTCALL | orxMouse_Init () |
orxDLLAPI orxBOOL orxFASTCALL | orxMouse_IsButtonPressed (orxMOUSE_BUTTON _eButton) |
orxDLLAPI orxSTATUS orxFASTCALL | orxMouse_SetCursor (const orxSTRING _zName, const orxVECTOR *_pvPivot) |
orxDLLAPI orxSTATUS orxFASTCALL | orxMouse_SetPosition (const orxVECTOR *_pvPosition) |
orxDLLAPI void orxFASTCALL | orxMouse_Setup () |
orxDLLAPI orxSTATUS orxFASTCALL | orxMouse_ShowCursor (orxBOOL _bShow) |
Mouse plugin module Plugin module that handles mouse-like peripherals
#define orxMOUSE_KZ_CONFIG_GRAB "Grab" |
Definition at line 84 of file orxMouse.h.
#define orxMOUSE_KZ_CONFIG_SECTION "Mouse" |
Definition at line 82 of file orxMouse.h.
#define orxMOUSE_KZ_CONFIG_SHOW_CURSOR "ShowCursor" |
Definition at line 83 of file orxMouse.h.
enum orxMOUSE_AXIS |
Enumerator | |
---|---|
orxMOUSE_AXIS_X | |
orxMOUSE_AXIS_Y | |
orxMOUSE_AXIS_NUMBER | |
orxMOUSE_AXIS_NONE |
Definition at line 72 of file orxMouse.h.
enum orxMOUSE_BUTTON |
Button enum
Definition at line 54 of file orxMouse.h.
orxDLLAPI const orxSTRING orxFASTCALL orxMouse_GetAxisName | ( | orxMOUSE_AXIS | _eAxis | ) |
Gets axis literal name
[in] | _eAxis | Concerned axis |
orxDLLAPI const orxSTRING orxFASTCALL orxMouse_GetButtonName | ( | orxMOUSE_BUTTON | _eButton | ) |
Gets button literal name
[in] | _eButton | Concerned button |
Gets mouse move delta (since last call)
[out] | _pvMoveDelta | Mouse move delta |
orxDLLAPI orxFLOAT orxFASTCALL orxMouse_GetWheelDelta | ( | ) |
Gets mouse wheel delta (since last call)
Grabs the mouse
[in] | _bGrab | Grab / Release |
Inits the mouse module
orxDLLAPI orxBOOL orxFASTCALL orxMouse_IsButtonPressed | ( | orxMOUSE_BUTTON | _eButton | ) |
Is mouse button pressed?
[in] | _eButton | Mouse button to check |
orxDLLAPI orxSTATUS orxFASTCALL orxMouse_SetCursor | ( | const orxSTRING | _zName, |
const orxVECTOR * | _pvPivot | ||
) |
Sets mouse (hardware) cursor
[in] | _zName | Cursor's name can be: a standard name (arrow, ibeam, hand, crosshair, hresize or vresize), a file name or orxNULL to reset the hardware cursor to default |
[in] | _pvPivot | Cursor's pivot (aka hotspot), orxNULL will default to (0, 0) |
Sets mouse position
[in] | _pvPosition | Mouse position |