DayZ 1.24
Loading...
Searching...
No Matches
Mouse API

returns index of defined key in InputDevice by its name More...

Collaboration diagram for Mouse API:

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

Enumerator
LEFT 
RIGHT 
MIDDLE 
WHEEL 

Definition at line 310 of file EnSystem.c.

311{
312 LEFT,
313 RIGHT,
314 MIDDLE,
315 X,
316 Y,
317 WHEEL
318};
@ Y
Definition EnSystem.c:316
@ X
Definition EnSystem.c:315
@ MIDDLE
Definition EnSystem.c:314
@ WHEEL
Definition EnSystem.c:317
@ LEFT
Definition EnSystem.c:312
@ RIGHT
Definition EnSystem.c:313

Function Documentation

◆ GetMousePos()

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

Referenced by ScriptConsoleWeatherTab::OnChange(), WeaponDebug::OnCommandHandlerUpdate(), CallQueue::Tick(), and PlayerPreview::UpdateInterval().

◆ GetScreenSize()