Mouse API
Part of System
Enums
Values
LEFT | ||
MIDDLE | ||
RIGHT | ||
WHEEL | ||
X | ||
Y |
Functions
proto void GetMousePos(out int x, out int y) | more… | |
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"); | more… |
proto void GetScreenSize(out int x, out int y) | more… |
Function Documentation
GetMousePos
Referenced by DayZIntroScenePC.CharacterRotate(), DayZIntroScenePC.CharacterRotationStart(), DragQueue.Tick()
Show 20 more
, HandsContainer.ShowActionMenuCombine(), Icon.FlagAction(), InspectMenuNew.OnMouseButtonDown(), ItemManager.PrepareTooltip(), LayoutHolder.ShowActionMenu(), ModsMenuTooltip.ShowTooltip(), PlayerPreview.MouseButtonDown(), PlayerPreview.UpdateInterval(), PluginItemDiagnostic.OnDraggingStart(), PluginItemDiagnostic.OnUpdate(), RadialMenu.GetMouseDistance(), RadialMenu.GetMousePointerAngle(), ScriptConsole.DisplayHint(), ScriptConsole.Update(), ScriptConsoleGeneralTab.OnMouseButtonDown(), ScriptConsoleGeneralTab.UpdateMousePos(), ScriptConsoleSoundsTab.OnMouseButtonDown(), ScriptConsoleSoundsTab.UpdateMousePos(), ScriptConsoleToolTipEventHandler.DisplayHint(), and ScrollBarContainer.OnMouseButtonDown()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 DragQueue.Tick(), PlayerPreview.UpdateInterval(), ScriptConsoleWeatherTab.OnChange()
Show 1 more
, WeaponDebug.OnCommandHandlerUpdate()GetScreenSize
Referenced by ActionTargetsCursor.BuildFixedCursor(), BleedingIndicatorDropData.BleedingIndicatorDropData(), ContextMenu.Show()