Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
Mouse API

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)
 

Detailed Description

returns index of defined key in InputDevice by its name

Enumeration Type Documentation

◆ MouseState

enum MouseState
Enumerator
LEFT 
RIGHT 
MIDDLE 
WHEEL 

Definition at line 310 of file ensystem.c.

Function Documentation

◆ GetMousePos()

proto void GetMousePos ( out int  x,
out int  y 
)

◆ GetMouseState()

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");

◆ GetScreenSize()

proto void GetScreenSize ( out int  x,
out int  y 
)