My Project v1
Project
载入中...
搜索中...
未找到
Game.WidgetInput
Game.WidgetInput 的协作图:

Public 成员函数

bool IsKeyDown (Key key)
 
bool IsKeyDownOnce (Key key)
 
bool IsKeyDownRepeat (Key key)
 
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 IsPadButtonDown (GamePadButton button)
 
bool IsPadButtonDownOnce (GamePadButton button)
 
bool IsPadButtonDownRepeat (GamePadButton button)
 
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 ()
 
void Update ()
 
void Draw (Widget.DrawContext dc)
 
void ClearInput ()
 
void UpdateInputFromKeyboard ()
 
void UpdateInputFromMouse ()
 
void UpdateInputFromGamepads ()
 
void UpdateInputFromTouch ()
 

Public 属性

bool m_isCleared
 
Widget m_widget
 
Vector2 m_softMouseCursorPosition
 
Vector2? m_mouseDownPoint
 
MouseButton m_mouseDownButton
 
double m_mouseDragTime
 
bool m_mouseDragInProgress
 
bool m_mouseHoldInProgress
 
bool m_isMouseCursorVisible = true
 
bool m_useSoftMouseCursor
 
int? m_touchId
 
bool m_touchCleared
 
Vector2 m_touchStartPoint
 
double m_touchStartTime
 
bool m_touchDragInProgress
 
bool m_touchHoldInProgress
 
Vector2 m_padCursorPosition
 
Vector2? m_padDownPoint
 
double m_padDragTime
 
bool m_padDragInProgress
 
bool m_isPadCursorVisible = true
 
Vector2? m_vrDownPoint
 
double m_vrDragTime
 
bool m_vrDragInProgress
 
bool m_isVrCursorVisible = true
 

属性

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]
 
Segment2Click [get, set]
 
Segment2SpecialClick [get, set]
 
Vector2? Drag [get, set]
 
DragMode DragMode [get, set]
 
Vector2? Hold [get, set]
 
float HoldTime [get, set]
 
Vector3Scroll [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 WidgetInput(WidgetInputDevice.None) [get]
 
Widget Widget [get]
 
WidgetInputDevice Devices [get, set]
 

构造及析构函数说明

◆ WidgetInput()

Game.WidgetInput.WidgetInput ( WidgetInputDevice devices = WidgetInputDevice::All)

成员函数说明

◆ Clear()

void Game.WidgetInput.Clear ( )
函数调用图:
这是这个函数的调用关系图:

◆ ClearInput()

void Game.WidgetInput.ClearInput ( )
这是这个函数的调用关系图:

◆ Draw()

void Game.WidgetInput.Draw ( Widget.DrawContext dc)
函数调用图:
这是这个函数的调用关系图:

◆ EnterText()

void Game.WidgetInput.EnterText ( ContainerWidget parentWidget,
string title,
string text,
int maxLength,
Action< string > handler )

◆ GetPadStickPosition()

Vector2 Game.WidgetInput.GetPadStickPosition ( GamePadStick stick,
float deadZone = 0f )
这是这个函数的调用关系图:

◆ GetPadTriggerPosition()

float Game.WidgetInput.GetPadTriggerPosition ( GamePadTrigger trigger,
float deadZone = 0f )
这是这个函数的调用关系图:

◆ GetVrStickPosition()

Vector2 Game.WidgetInput.GetVrStickPosition ( VrController controller,
float deadZone = 0f )
函数调用图:
这是这个函数的调用关系图:

◆ GetVrTouchpadPosition()

Vector2? Game.WidgetInput.GetVrTouchpadPosition ( VrController controller,
float deadZone = 0f )
函数调用图:

◆ GetVrTriggerPosition()

float Game.WidgetInput.GetVrTriggerPosition ( VrController controller,
float deadZone = 0f )
函数调用图:

◆ IsKeyDown()

bool Game.WidgetInput.IsKeyDown ( Key key)
这是这个函数的调用关系图:

◆ IsKeyDownOnce()

bool Game.WidgetInput.IsKeyDownOnce ( Key key)
这是这个函数的调用关系图:

◆ IsKeyDownRepeat()

bool Game.WidgetInput.IsKeyDownRepeat ( Key key)
这是这个函数的调用关系图:

◆ IsMouseButtonDown()

bool Game.WidgetInput.IsMouseButtonDown ( MouseButton button)
这是这个函数的调用关系图:

◆ IsMouseButtonDownOnce()

bool Game.WidgetInput.IsMouseButtonDownOnce ( MouseButton button)
这是这个函数的调用关系图:

◆ IsPadButtonDown()

bool Game.WidgetInput.IsPadButtonDown ( GamePadButton button)
这是这个函数的调用关系图:

◆ IsPadButtonDownOnce()

bool Game.WidgetInput.IsPadButtonDownOnce ( GamePadButton button)
这是这个函数的调用关系图:

◆ IsPadButtonDownRepeat()

bool Game.WidgetInput.IsPadButtonDownRepeat ( GamePadButton button)
这是这个函数的调用关系图:

◆ IsVrButtonDown()

bool Game.WidgetInput.IsVrButtonDown ( VrController controller,
VrControllerButton button )
函数调用图:

◆ IsVrButtonDownOnce()

bool Game.WidgetInput.IsVrButtonDownOnce ( VrController controller,
VrControllerButton button )
函数调用图:
这是这个函数的调用关系图:

◆ Update()

void Game.WidgetInput.Update ( )
函数调用图:
这是这个函数的调用关系图:

◆ UpdateInputFromGamepads()

void Game.WidgetInput.UpdateInputFromGamepads ( )
函数调用图:
这是这个函数的调用关系图:

◆ UpdateInputFromKeyboard()

void Game.WidgetInput.UpdateInputFromKeyboard ( )
函数调用图:
这是这个函数的调用关系图:

◆ UpdateInputFromMouse()

void Game.WidgetInput.UpdateInputFromMouse ( )
函数调用图:
这是这个函数的调用关系图:

◆ UpdateInputFromTouch()

void Game.WidgetInput.UpdateInputFromTouch ( )
函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ 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

MouseButton Game.WidgetInput.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

Segment2? Game.WidgetInput.Click
getset

◆ Devices

WidgetInputDevice Game.WidgetInput.Devices
getset

◆ Down

bool Game.WidgetInput.Down
getset

◆ Drag

Vector2? Game.WidgetInput.Drag
getset

◆ DragMode

DragMode Game.WidgetInput.DragMode
getset

◆ EmptyInput

WidgetInput Game.WidgetInput.EmptyInput = new WidgetInput(WidgetInputDevice.None)
staticget

◆ Hold

Vector2? Game.WidgetInput.Hold
getset

◆ 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

bool Game.WidgetInput.Ok
getset

◆ PadCursorPosition

Vector2 Game.WidgetInput.PadCursorPosition
getset

◆ Press

Vector2? Game.WidgetInput.Press
getset

◆ Right

bool Game.WidgetInput.Right
getset

◆ Scroll

Vector3? Game.WidgetInput.Scroll
getset

◆ SpecialClick

Segment2? Game.WidgetInput.SpecialClick
getset

◆ Tap

Vector2? Game.WidgetInput.Tap
getset

◆ TouchLocations

ReadOnlyList<TouchLocation> Game.WidgetInput.TouchLocations
get

◆ Up

bool Game.WidgetInput.Up
getset

◆ UseSoftMouseCursor

bool Game.WidgetInput.UseSoftMouseCursor
getset

◆ VrCursorPosition

Vector2? Game.WidgetInput.VrCursorPosition
getset

◆ VrQuadMatrix

Matrix? Game.WidgetInput.VrQuadMatrix
getset

◆ Widget

Widget Game.WidgetInput.Widget
get

该类的文档由以下文件生成: