|
| bool | IsKeyDown (Key key) |
| bool | IsKeyDownOnce (Key key) |
| bool | IsKeyDownRepeat (Key key) |
| bool | IsKeyOrMouseDown (string mappingName) |
| | 根据按键映射名称判断键盘鼠标按键是否按住
|
| bool | IsKeyOrMouseDownOnce (string mappingName) |
| | 根据按键映射名称判断键盘鼠标按键是否按下
|
| bool | IsGamepadDown (string mappingName) |
| | 根据按键映射名称判断手柄按键是否按住
|
| bool | IsGamepadDownOnce (string mappingName) |
| | 根据按键映射名称判断手柄按键是否按下
|
| void | EnterText (ContainerWidget parentWidget, string title, string text, int maxLength, Action< string > handler) |
| bool | IsMouseButtonDown (MouseButton button) |
| bool | IsMouseButtonDownOnce (MouseButton button) |
| Vector2 | GetPadStickPosition (GamePadStick stick, float deadZone=0f) |
| float | GetPadTriggerPosition (GamePadTrigger trigger, float deadZone=0f) |
| bool | IsPadTriggerDown (GamePadTrigger trigger, float deadZone=0f, float threshold=0.5f) |
| bool | IsTriggerDownOnce (GamePadTrigger trigger, float deadZone=0f, float threshold=0.5f) |
| void | SetModifierKeyOfCurrentCombo (object modifierKey) |
| bool | IsPadButtonDown (GamePadButton button) |
| bool | IsPadButtonDownOnce (GamePadButton button) |
| bool | IsPadButtonDownRepeat (GamePadButton button) |
| bool | IsAnyModifierKeyHolding () |
| Vector2 | GetVrStickPosition (VrController controller, float deadZone=0f) |
| Vector2? | GetVrTouchpadPosition (VrController controller, float deadZone=0f) |
| float | GetVrTriggerPosition (VrController controller, float deadZone=0f) |
| bool | IsVrButtonDown (VrController controller, VrControllerButton button) |
| bool | IsVrButtonDownOnce (VrController controller, VrControllerButton button) |
| | WidgetInput (WidgetInputDevice devices=WidgetInputDevice.All) |
| void | Clear () |
| virtual void | Update () |
| virtual void | Draw (Widget.DrawContext dc) |
| void | ClearInput () |
| virtual void | UpdateInputFromKeyboard () |
| virtual void | UpdateInputFromMouse () |
| virtual void | UpdateInputFromGamepads () |
| virtual void | UpdateInputFromTouch () |
|
| bool | Any [get, set] |
| bool | Ok [get, set] |
| bool | Cancel [get, set] |
| bool | Back [get, set] |
| bool | Left [get, set] |
| bool | Right [get, set] |
| bool | Up [get, set] |
| bool | Down [get, set] |
| Vector2? | Press [get, set] |
| Vector2? | Tap [get, set] |
| Segment2? | Click [get, set] |
| Segment2? | SpecialClick [get, set] |
| Vector2? | Drag [get, set] |
| DragMode | DragMode [get, set] |
| Vector2? | Hold [get, set] |
| float | HoldTime [get, set] |
| Vector3? | Scroll [get, set] |
| Key? | LastKey [get] |
| char? | LastChar [get] |
| bool | UseSoftMouseCursor [get, set] |
| bool | IsMouseCursorVisible [get, set] |
| Vector2? | MousePosition [get, set] |
| Point2 | MouseMovement [get] |
| int | MouseWheelMovement [get] |
| bool | IsPadCursorVisible [get, set] |
| Vector2 | PadCursorPosition [get, set] |
| ReadOnlyList< TouchLocation > | TouchLocations [get] |
| Matrix? | VrQuadMatrix [get, set] |
| bool | IsVrCursorVisible [get, set] |
| Vector2? | VrCursorPosition [get, set] |
| static WidgetInput | EmptyInput = new(WidgetInputDevice.None) [get] |
| Widget | Widget [get] |
| WidgetInputDevice | Devices [get, set] |
◆ WidgetInput()
◆ Clear()
| void Game.WidgetInput.Clear |
( |
| ) |
|
◆ ClearInput()
| void Game.WidgetInput.ClearInput |
( |
| ) |
|
◆ Draw()
◆ EnterText()
| void Game.WidgetInput.EnterText |
( |
ContainerWidget | parentWidget, |
|
|
string | title, |
|
|
string | text, |
|
|
int | maxLength, |
|
|
Action< string > | handler ) |
◆ GetPadStickPosition()
◆ GetPadTriggerPosition()
| float Game.WidgetInput.GetPadTriggerPosition |
( |
GamePadTrigger | trigger, |
|
|
float | deadZone = 0f ) |
◆ GetVrStickPosition()
◆ GetVrTouchpadPosition()
| Vector2? Game.WidgetInput.GetVrTouchpadPosition |
( |
VrController | controller, |
|
|
float | deadZone = 0f ) |
◆ GetVrTriggerPosition()
| float Game.WidgetInput.GetVrTriggerPosition |
( |
VrController | controller, |
|
|
float | deadZone = 0f ) |
◆ IsAnyModifierKeyHolding()
| bool Game.WidgetInput.IsAnyModifierKeyHolding |
( |
| ) |
|
◆ IsGamepadDown()
| bool Game.WidgetInput.IsGamepadDown |
( |
string | mappingName | ) |
|
◆ IsGamepadDownOnce()
| bool Game.WidgetInput.IsGamepadDownOnce |
( |
string | mappingName | ) |
|
◆ IsKeyDown()
| bool Game.WidgetInput.IsKeyDown |
( |
Key | key | ) |
|
◆ IsKeyDownOnce()
| bool Game.WidgetInput.IsKeyDownOnce |
( |
Key | key | ) |
|
◆ IsKeyDownRepeat()
| bool Game.WidgetInput.IsKeyDownRepeat |
( |
Key | key | ) |
|
◆ IsKeyOrMouseDown()
| bool Game.WidgetInput.IsKeyOrMouseDown |
( |
string | mappingName | ) |
|
◆ IsKeyOrMouseDownOnce()
| bool Game.WidgetInput.IsKeyOrMouseDownOnce |
( |
string | mappingName | ) |
|
◆ IsMouseButtonDown()
| bool Game.WidgetInput.IsMouseButtonDown |
( |
MouseButton | button | ) |
|
◆ IsMouseButtonDownOnce()
| bool Game.WidgetInput.IsMouseButtonDownOnce |
( |
MouseButton | button | ) |
|
◆ IsPadButtonDown()
◆ IsPadButtonDownOnce()
| bool Game.WidgetInput.IsPadButtonDownOnce |
( |
GamePadButton | button | ) |
|
◆ IsPadButtonDownRepeat()
| bool Game.WidgetInput.IsPadButtonDownRepeat |
( |
GamePadButton | button | ) |
|
◆ IsPadTriggerDown()
| bool Game.WidgetInput.IsPadTriggerDown |
( |
GamePadTrigger | trigger, |
|
|
float | deadZone = 0f, |
|
|
float | threshold = 0::5f ) |
◆ IsTriggerDownOnce()
| bool Game.WidgetInput.IsTriggerDownOnce |
( |
GamePadTrigger | trigger, |
|
|
float | deadZone = 0f, |
|
|
float | threshold = 0::5f ) |
◆ IsVrButtonDown()
◆ IsVrButtonDownOnce()
◆ SetModifierKeyOfCurrentCombo()
| void Game.WidgetInput.SetModifierKeyOfCurrentCombo |
( |
object | modifierKey | ) |
|
◆ Update()
| virtual void Game.WidgetInput.Update |
( |
| ) |
|
|
virtual |
◆ UpdateInputFromGamepads()
| virtual void Game.WidgetInput.UpdateInputFromGamepads |
( |
| ) |
|
|
virtual |
◆ UpdateInputFromKeyboard()
| virtual void Game.WidgetInput.UpdateInputFromKeyboard |
( |
| ) |
|
|
virtual |
◆ UpdateInputFromMouse()
| virtual void Game.WidgetInput.UpdateInputFromMouse |
( |
| ) |
|
|
virtual |
◆ UpdateInputFromTouch()
| virtual void Game.WidgetInput.UpdateInputFromTouch |
( |
| ) |
|
|
virtual |
◆ m_isCleared
| bool Game.WidgetInput.m_isCleared |
◆ m_isMouseCursorVisible
| bool Game.WidgetInput.m_isMouseCursorVisible = true |
◆ m_isPadCursorVisible
| bool Game.WidgetInput.m_isPadCursorVisible = true |
◆ m_isVrCursorVisible
| bool Game.WidgetInput.m_isVrCursorVisible = true |
◆ m_mouseDownButton
◆ m_mouseDownPoint
| Vector2? Game.WidgetInput.m_mouseDownPoint |
◆ m_mouseDragInProgress
| bool Game.WidgetInput.m_mouseDragInProgress |
◆ m_mouseDragTime
| double Game.WidgetInput.m_mouseDragTime |
◆ m_mouseHoldInProgress
| bool Game.WidgetInput.m_mouseHoldInProgress |
◆ m_padCursorPosition
| Vector2 Game.WidgetInput.m_padCursorPosition |
◆ m_padDownPoint
| Vector2? Game.WidgetInput.m_padDownPoint |
◆ m_padDragInProgress
| bool Game.WidgetInput.m_padDragInProgress |
◆ m_padDragTime
| double Game.WidgetInput.m_padDragTime |
◆ m_softMouseCursorPosition
| Vector2 Game.WidgetInput.m_softMouseCursorPosition |
◆ m_touchCleared
| bool Game.WidgetInput.m_touchCleared |
◆ m_touchDragInProgress
| bool Game.WidgetInput.m_touchDragInProgress |
◆ m_touchHoldInProgress
| bool Game.WidgetInput.m_touchHoldInProgress |
◆ m_touchId
| int? Game.WidgetInput.m_touchId |
◆ m_touchStartPoint
| Vector2 Game.WidgetInput.m_touchStartPoint |
◆ m_touchStartTime
| double Game.WidgetInput.m_touchStartTime |
◆ m_useSoftMouseCursor
| bool Game.WidgetInput.m_useSoftMouseCursor |
◆ m_vrDownPoint
| Vector2? Game.WidgetInput.m_vrDownPoint |
◆ m_vrDragInProgress
| bool Game.WidgetInput.m_vrDragInProgress |
◆ m_vrDragTime
| double Game.WidgetInput.m_vrDragTime |
◆ m_widget
| Widget Game.WidgetInput.m_widget |
◆ Any
| bool Game.WidgetInput.Any |
|
getset |
◆ Back
| bool Game.WidgetInput.Back |
|
getset |
◆ Cancel
| bool Game.WidgetInput.Cancel |
|
getset |
◆ Click
◆ Devices
◆ Down
| bool Game.WidgetInput.Down |
|
getset |
◆ Drag
◆ DragMode
◆ EmptyInput
◆ Hold
◆ HoldTime
| float Game.WidgetInput.HoldTime |
|
getset |
◆ IsMouseCursorVisible
| bool Game.WidgetInput.IsMouseCursorVisible |
|
getset |
◆ IsPadCursorVisible
| bool Game.WidgetInput.IsPadCursorVisible |
|
getset |
◆ IsVrCursorVisible
| bool Game.WidgetInput.IsVrCursorVisible |
|
getset |
◆ LastChar
| char? Game.WidgetInput.LastChar |
|
get |
◆ LastKey
| Key? Game.WidgetInput.LastKey |
|
get |
◆ Left
| bool Game.WidgetInput.Left |
|
getset |
◆ MouseMovement
| Point2 Game.WidgetInput.MouseMovement |
|
get |
◆ MousePosition
| Vector2? Game.WidgetInput.MousePosition |
|
getset |
◆ MouseWheelMovement
| int Game.WidgetInput.MouseWheelMovement |
|
get |
◆ Ok
◆ PadCursorPosition
| Vector2 Game.WidgetInput.PadCursorPosition |
|
getset |
◆ Press
◆ Right
| bool Game.WidgetInput.Right |
|
getset |
◆ Scroll
◆ SpecialClick
◆ Tap
◆ TouchLocations
◆ Up
◆ UseSoftMouseCursor
| bool Game.WidgetInput.UseSoftMouseCursor |
|
getset |
◆ VrCursorPosition
| Vector2? Game.WidgetInput.VrCursorPosition |
|
getset |
◆ VrQuadMatrix
| Matrix? Game.WidgetInput.VrQuadMatrix |
|
getset |
◆ Widget
| Widget Game.WidgetInput.Widget |
|
get |
该类的文档由以下文件生成:
- E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Survivalcraft.Windows/Widget/WidgetInput.cs