Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Input.Keyboard

静态 Public 成员函数

static bool IsKeyDown (Key key)
static bool IsKeyDownOnce (Key key)
static bool IsKeyDownRepeat (Key key)
static void ShowKeyboard (string title, string description, string defaultText, bool passwordMode, Action< string > enter, Action cancel)
static void Clear ()
static bool ProcessKeyDown (Key key)
static bool ProcessKeyUp (Key key)
static bool ProcessCharacterEntered (char ch)
static Key TranslateKey (Silk.NET.Input.Key key)
static void ShowKeyboardInternal (string title, string description, string defaultText, bool passwordMode, Action< string > enter, Action cancel)

静态 Public 属性

static IKeyboard m_keyboard
static double m_keyFirstRepeatTime = 0.3
static double m_keyNextRepeatTime = 0.04

静态包函数

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

属性

static ? Key LastKey [get]
static ? char LastChar [get]
static bool IsKeyboardVisible [get, private set]
static bool BackButtonQuitsApp [get, set]

事件

static Action< Key > KeyDown
static Action< Key > KeyUp
static Action< char > CharacterEntered

静态 Private 成员函数

static void KeyDownHandler (IKeyboard keyboard, Silk.NET.Input.Key key, int scancode)
static void KeyUpHandler (IKeyboard keyboard, Silk.NET.Input.Key key, int scancode)
static void KeyPressHandler (IKeyboard keyboard, char c)

静态 Private 属性

static bool[] m_keysDownArray = new bool[Enum.GetValues<Key>().Length]
static bool[] m_keysDownOnceArray = new bool[Enum.GetValues<Key>().Length]
static double[] m_keysDownRepeatArray = new double[Enum.GetValues<Key>().Length]
static ? Key m_lastKey
static ? char m_lastChar

详细描述

在文件 Keyboard.cs 第 14 行定义.

成员函数说明

◆ AfterFrame()

void Engine.Input.Keyboard.AfterFrame ( )
staticpackage

在文件 Keyboard.cs 第 148 行定义.

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

◆ BeforeFrame()

void Engine.Input.Keyboard.BeforeFrame ( )
staticpackage

在文件 Keyboard.cs 第 125 行定义.

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

◆ Clear()

void Engine.Input.Keyboard.Clear ( )
static

在文件 Keyboard.cs 第 115 行定义.

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

◆ Dispose()

void Engine.Input.Keyboard.Dispose ( )
staticpackage

在文件 Keyboard.cs 第 221 行定义.

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

◆ Initialize()

void Engine.Input.Keyboard.Initialize ( )
staticpackage

在文件 Keyboard.cs 第 212 行定义.

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

◆ IsKeyDown()

bool Engine.Input.Keyboard.IsKeyDown ( Key key)
static

在文件 Keyboard.cs 第 61 行定义.

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

◆ IsKeyDownOnce()

bool Engine.Input.Keyboard.IsKeyDownOnce ( Key key)
static

在文件 Keyboard.cs 第 63 行定义.

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

◆ IsKeyDownRepeat()

bool Engine.Input.Keyboard.IsKeyDownRepeat ( Key key)
static

在文件 Keyboard.cs 第 65 行定义.

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

◆ KeyDownHandler()

void Engine.Input.Keyboard.KeyDownHandler ( IKeyboard keyboard,
Silk.NET.Input.Key key,
int scancode )
staticprivate

在文件 Keyboard.cs 第 227 行定义.

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

◆ KeyPressHandler()

void Engine.Input.Keyboard.KeyPressHandler ( IKeyboard keyboard,
char c )
staticprivate

在文件 Keyboard.cs 第 251 行定义.

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

◆ KeyUpHandler()

void Engine.Input.Keyboard.KeyUpHandler ( IKeyboard keyboard,
Silk.NET.Input.Key key,
int scancode )
staticprivate

在文件 Keyboard.cs 第 241 行定义.

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

◆ ProcessCharacterEntered()

bool Engine.Input.Keyboard.ProcessCharacterEntered ( char ch)
static

在文件 Keyboard.cs 第 203 行定义.

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

◆ ProcessKeyDown()

bool Engine.Input.Keyboard.ProcessKeyDown ( Key key)
static

在文件 Keyboard.cs 第 178 行定义.

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

◆ ProcessKeyUp()

bool Engine.Input.Keyboard.ProcessKeyUp ( Key key)
static

在文件 Keyboard.cs 第 192 行定义.

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

◆ ShowKeyboard()

void Engine.Input.Keyboard.ShowKeyboard ( string title,
string description,
string defaultText,
bool passwordMode,
Action< string > enter,
Action cancel )
static

在文件 Keyboard.cs 第 70 行定义.

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

◆ ShowKeyboardInternal()

void Engine.Input.Keyboard.ShowKeyboardInternal ( string title,
string description,
string defaultText,
bool passwordMode,
Action< string > enter,
Action cancel )
static

在文件 Keyboard.cs 第 498 行定义.

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

◆ TranslateKey()

Key Engine.Input.Keyboard.TranslateKey ( Silk.NET.Input.Key key)
static

在文件 Keyboard.cs 第 415 行定义.

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

类成员变量说明

◆ m_keyboard

IKeyboard Engine.Input.Keyboard.m_keyboard
static

在文件 Keyboard.cs 第 30 行定义.

◆ m_keyFirstRepeatTime

double Engine.Input.Keyboard.m_keyFirstRepeatTime = 0.3
static

在文件 Keyboard.cs 第 33 行定义.

◆ m_keyNextRepeatTime

double Engine.Input.Keyboard.m_keyNextRepeatTime = 0.04
static

在文件 Keyboard.cs 第 35 行定义.

◆ m_keysDownArray

bool [] Engine.Input.Keyboard.m_keysDownArray = new bool[Enum.GetValues<Key>().Length]
staticprivate

在文件 Keyboard.cs 第 37 行定义.

◆ m_keysDownOnceArray

bool [] Engine.Input.Keyboard.m_keysDownOnceArray = new bool[Enum.GetValues<Key>().Length]
staticprivate

在文件 Keyboard.cs 第 39 行定义.

◆ m_keysDownRepeatArray

double [] Engine.Input.Keyboard.m_keysDownRepeatArray = new double[Enum.GetValues<Key>().Length]
staticprivate

在文件 Keyboard.cs 第 41 行定义.

◆ m_lastChar

? char Engine.Input.Keyboard.m_lastChar
staticprivate

在文件 Keyboard.cs 第 45 行定义.

◆ m_lastKey

? Key Engine.Input.Keyboard.m_lastKey
staticprivate

在文件 Keyboard.cs 第 43 行定义.

属性说明

◆ BackButtonQuitsApp

bool Engine.Input.Keyboard.BackButtonQuitsApp
staticgetset

在文件 Keyboard.cs 第 53 行定义.

◆ IsKeyboardVisible

bool Engine.Input.Keyboard.IsKeyboardVisible
staticgetprivate set

在文件 Keyboard.cs 第 51 行定义.

◆ LastChar

? char Engine.Input.Keyboard.LastChar
staticget

在文件 Keyboard.cs 第 49 行定义.

◆ LastKey

? Key Engine.Input.Keyboard.LastKey
staticget

在文件 Keyboard.cs 第 47 行定义.

事件说明

◆ CharacterEntered

Action<char> Engine.Input.Keyboard.CharacterEntered
static

在文件 Keyboard.cs 第 59 行定义.

◆ KeyDown

Action<Key> Engine.Input.Keyboard.KeyDown
static

在文件 Keyboard.cs 第 55 行定义.

◆ KeyUp

Action<Key> Engine.Input.Keyboard.KeyUp
static

在文件 Keyboard.cs 第 57 行定义.


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