Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
|
returns index of defined key in InputDevice by its name More...
Enumerations | |
enum | MouseState { LEFT, RIGHT, MIDDLE, X, Y, WHEEL } |
Functions | |
proto native int | GetMouseState (MouseState index) |
proto void | GetMousePos (out int x, out int y) |
proto void | GetScreenSize (out int x, out int y) |
returns index of defined key in InputDevice by its name
enum MouseState |
Enumerator | |
---|---|
LEFT | |
RIGHT | |
MIDDLE | |
X | |
Y | |
WHEEL |
Definition at line 310 of file ensystem.c.
proto native int GetMouseState | ( | MouseState | index | ) |
Returns state of mouse button. It's combination of number of release/pressed edges and mask MB_PRESSED_MASK that is set when button is pressed. If you want just to check if button is pressed, use this: if(GetMouseState(MouseState.LEFT) & MB_PRESSED_MASK)) Print("left button pressed");