DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Mouse API

returns index of defined key in InputDevice by its name Подробнее...

Перечисления

enum  MouseState {
  LEFT , RIGHT , MIDDLE , X ,
  Y , WHEEL
}
 

Функции

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

Перечисления

◆ MouseState

Элементы перечислений
LEFT 
RIGHT 
MIDDLE 
WHEEL 
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

Функции

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

Используется в ScriptConsoleWeatherTab::OnChange(), WeaponDebug::OnCommandHandlerUpdate(), CallQueue::Tick() и PlayerPreview::UpdateInterval().

◆ GetScreenSize()