Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Input.GamePad
Engine.Input.GamePad 的协作图:

class  State

静态 Public 成员函数

static bool IsConnected (int gamePadIndex)
static Vector2 GetStickPosition (int gamePadIndex, GamePadStick stick, float deadZone=0f)
static float GetTriggerPosition (int gamePadIndex, GamePadTrigger trigger, float deadZone=0f)
static bool IsTriggerDown (int gamePadIndex, GamePadTrigger trigger, float deadZone=0f, float threshold=0.5f)
static bool IsTriggerDownOnce (int gamePadIndex, GamePadTrigger trigger, float deadZone=0f, float threshold=0.5f)
static bool IsButtonDown (int gamePadIndex, GamePadButton button)
static bool IsButtonDownOnce (int gamePadIndex, GamePadButton button)
static bool IsButtonDownRepeat (int gamePadIndex, GamePadButton button)
static bool IsAnyModifierKeyHolding (int gamePadIndex, float threshold=0.5f)
static void SetModifierKeyOfCurrentCombo (int gamePadIndex, object modifierKey)
static bool IsModifierKey (object obj)
static void Clear ()
static float ApplyDeadZone (float value, float deadZone)

静态 Public 属性

static IReadOnlyList< IGamepad > m_gamepads
static double m_buttonFirstRepeatTime = 0.2
static double m_buttonNextRepeatTime = 0.04

静态包函数

static void Initialize ()
static void Dispose ()
static void BeforeFrame ()
static void AfterFrame ()

静态包属性

static State[] m_states = [new(), new(), new(), new()]

详细描述

在文件 GamePad.cs12 行定义.

成员函数说明

◆ AfterFrame()

void Engine.Input.GamePad.AfterFrame ( )
staticpackage

在文件 GamePad.cs441 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ ApplyDeadZone()

float Engine.Input.GamePad.ApplyDeadZone ( float value,
float deadZone )
static

在文件 GamePad.cs471 行定义.

这是这个函数的调用关系图:

◆ BeforeFrame()

void Engine.Input.GamePad.BeforeFrame ( )
staticpackage

在文件 GamePad.cs243 行定义.

这是这个函数的调用关系图:

◆ Clear()

void Engine.Input.GamePad.Clear ( )
static

在文件 GamePad.cs426 行定义.

◆ Dispose()

void Engine.Input.GamePad.Dispose ( )
staticpackage

在文件 GamePad.cs84 行定义.

这是这个函数的调用关系图:

◆ GetStickPosition()

Vector2 Engine.Input.GamePad.GetStickPosition ( int gamePadIndex,
GamePadStick stick,
float deadZone = 0f )
static

在文件 GamePad.cs298 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetTriggerPosition()

float Engine.Input.GamePad.GetTriggerPosition ( int gamePadIndex,
GamePadTrigger trigger,
float deadZone = 0f )
static

在文件 GamePad.cs317 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Initialize()

void Engine.Input.GamePad.Initialize ( )
staticpackage

在文件 GamePad.cs78 行定义.

这是这个函数的调用关系图:

◆ IsAnyModifierKeyHolding()

bool Engine.Input.GamePad.IsAnyModifierKeyHolding ( int gamePadIndex,
float threshold = 0::5f )
static

在文件 GamePad.cs380 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ IsButtonDown()

bool Engine.Input.GamePad.IsButtonDown ( int gamePadIndex,
GamePadButton button )
static

在文件 GamePad.cs350 行定义.

这是这个函数的调用关系图:

◆ IsButtonDownOnce()

bool Engine.Input.GamePad.IsButtonDownOnce ( int gamePadIndex,
GamePadButton button )
static

在文件 GamePad.cs353 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ IsButtonDownRepeat()

bool Engine.Input.GamePad.IsButtonDownRepeat ( int gamePadIndex,
GamePadButton button )
static

在文件 GamePad.cs368 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ IsConnected()

bool Engine.Input.GamePad.IsConnected ( int gamePadIndex)
static

在文件 GamePad.cs294 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ IsModifierKey()

bool Engine.Input.GamePad.IsModifierKey ( object obj)
static

在文件 GamePad.cs400 行定义.

这是这个函数的调用关系图:

◆ IsTriggerDown()

bool Engine.Input.GamePad.IsTriggerDown ( int gamePadIndex,
GamePadTrigger trigger,
float deadZone = 0f,
float threshold = 0::5f )
static

在文件 GamePad.cs321 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ IsTriggerDownOnce()

bool Engine.Input.GamePad.IsTriggerDownOnce ( int gamePadIndex,
GamePadTrigger trigger,
float deadZone = 0f,
float threshold = 0::5f )
static

在文件 GamePad.cs333 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ SetModifierKeyOfCurrentCombo()

void Engine.Input.GamePad.SetModifierKeyOfCurrentCombo ( int gamePadIndex,
object modifierKey )
static

在文件 GamePad.cs391 行定义.

函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ m_buttonFirstRepeatTime

double Engine.Input.GamePad.m_buttonFirstRepeatTime = 0.2
static

在文件 GamePad.cs72 行定义.

◆ m_buttonNextRepeatTime

double Engine.Input.GamePad.m_buttonNextRepeatTime = 0.04
static

在文件 GamePad.cs74 行定义.

◆ m_gamepads

IReadOnlyList<IGamepad> Engine.Input.GamePad.m_gamepads
static

在文件 GamePad.cs70 行定义.

◆ m_states

State [] Engine.Input.GamePad.m_states = [new(), new(), new(), new()]
staticpackage

在文件 GamePad.cs76 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine.Input/GamePad.cs