WKLib 0.2.3
A modding library for White Knuckle
Loading...
Searching...
No Matches
WKLib.API.Input.InputUtility Class Reference
+ Collaboration diagram for WKLib.API.Input.InputUtility:

Public Types

enum  KeyCodeDeviceType { None , Keyboard , Mouse , Gamepad }
 

Static Public Member Functions

static bool IsJoystickKeyCode (KeyCode key)
 
static bool IsMouseKeyCode (KeyCode key)
 
static KeyCodeDeviceType GetDeviceType (KeyCode key)
 
static ? object KeyCodeToControl (KeyCode key)
 
static bool GetKeyDown (KeyCode key)
 
static bool GetKey (KeyCode key)
 
static bool GetKeyUp (KeyCode key)
 
static ? KeyCode GetFirstActiveKey ()
 

Detailed Description

Definition at line 12 of file InputUtility.cs.

Member Enumeration Documentation

◆ KeyCodeDeviceType

Enumerator
None 
Keyboard 
Mouse 
Gamepad 

Definition at line 233 of file InputUtility.cs.

Member Function Documentation

◆ GetDeviceType()

static KeyCodeDeviceType WKLib.API.Input.InputUtility.GetDeviceType ( KeyCode key)
static

◆ GetFirstActiveKey()

static ? KeyCode WKLib.API.Input.InputUtility.GetFirstActiveKey ( )
static

◆ GetKey()

static bool WKLib.API.Input.InputUtility.GetKey ( KeyCode key)
static

Definition at line 415 of file InputUtility.cs.

References WKLib.API.Input.InputUtility.KeyCodeToControl().

◆ GetKeyDown()

static bool WKLib.API.Input.InputUtility.GetKeyDown ( KeyCode key)
static

Definition at line 406 of file InputUtility.cs.

References WKLib.API.Input.InputUtility.KeyCodeToControl().

◆ GetKeyUp()

static bool WKLib.API.Input.InputUtility.GetKeyUp ( KeyCode key)
static

Definition at line 424 of file InputUtility.cs.

References WKLib.API.Input.InputUtility.KeyCodeToControl().

◆ IsJoystickKeyCode()

static bool WKLib.API.Input.InputUtility.IsJoystickKeyCode ( KeyCode key)
static

Definition at line 241 of file InputUtility.cs.

Referenced by WKLib.API.Input.InputUtility.GetDeviceType().

◆ IsMouseKeyCode()

static bool WKLib.API.Input.InputUtility.IsMouseKeyCode ( KeyCode key)
static

Definition at line 246 of file InputUtility.cs.

Referenced by WKLib.API.Input.InputUtility.GetDeviceType().

◆ KeyCodeToControl()

static ? object WKLib.API.Input.InputUtility.KeyCodeToControl ( KeyCode key)
static

The documentation for this class was generated from the following file: