Shift
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Pages
Package Shift.Input

Namespaces

package  Util
 

Classes

class  GamePad
 
class  Joystick
 
class  Keyboard
 
class  Mouse
 
struct  KeyboardState
 Holds the state of keystrokes by a keyboard. More...
 
struct  MouseState
 Represents a mouse state with cursor position and button press information. More...
 

Enumerations

enum  Keys {
  Keys.None = 0, Keys.Back = 8, Keys.Tab = 9, Keys.Enter = 13,
  Keys.CapsLock = 20, Keys.Escape = 27, Keys.Space = 32, Keys.PageUp = 33,
  Keys.PageDown = 34, Keys.End = 35, Keys.Home = 36, Keys.Left = 37,
  Keys.Up = 38, Keys.Right = 39, Keys.Down = 40, Keys.Select = 41,
  Keys.Print = 42, Keys.Execute = 43, Keys.PrintScreen = 44, Keys.Insert = 45,
  Keys.Delete = 46, Keys.Help = 47, Keys.D0 = 48, Keys.D1 = 49,
  Keys.D2 = 50, Keys.D3 = 51, Keys.D4 = 52, Keys.D5 = 53,
  Keys.D6 = 54, Keys.D7 = 55, Keys.D8 = 56, Keys.D9 = 57,
  Keys.A = 65, Keys.B = 66, Keys.C = 67, Keys.D = 68,
  Keys.E = 69, Keys.F = 70, Keys.G = 71, Keys.H = 72,
  Keys.I = 73, Keys.J = 74, Keys.K = 75, Keys.L = 76,
  Keys.M = 77, Keys.N = 78, Keys.O = 79, Keys.P = 80,
  Keys.Q = 81, Keys.R = 82, Keys.S = 83, Keys.T = 84,
  Keys.U = 85, Keys.V = 86, Keys.W = 87, Keys.X = 88,
  Keys.Y = 89, Keys.Z = 90, Keys.LeftWindows = 91, Keys.RightWindows = 92,
  Keys.Apps = 93, Keys.Sleep = 95, Keys.NumPad0 = 96, Keys.NumPad1 = 97,
  Keys.NumPad2 = 98, Keys.NumPad3 = 99, Keys.NumPad4 = 100, Keys.NumPad5 = 101,
  Keys.NumPad6 = 102, Keys.NumPad7 = 103, Keys.NumPad8 = 104, Keys.NumPad9 = 105,
  Keys.Multiply = 106, Keys.Add = 107, Keys.Separator = 108, Keys.Subtract = 109,
  Keys.Decimal = 110, Keys.Divide = 111, Keys.F1 = 112, Keys.F2 = 113,
  Keys.F3 = 114, Keys.F4 = 115, Keys.F5 = 116, Keys.F6 = 117,
  Keys.F7 = 118, Keys.F8 = 119, Keys.F9 = 120, Keys.F10 = 121,
  Keys.F11 = 122, Keys.F12 = 123, Keys.F13 = 124, Keys.F14 = 125,
  Keys.F15 = 126, Keys.F16 = 127, Keys.F17 = 128, Keys.F18 = 129,
  Keys.F19 = 130, Keys.F20 = 131, Keys.F21 = 132, Keys.F22 = 133,
  Keys.F23 = 134, Keys.F24 = 135, Keys.NumLock = 144, Keys.Scroll = 145,
  Keys.LeftShift = 160, Keys.RightShift = 161, Keys.LeftControl = 162, Keys.RightControl = 163,
  Keys.LeftAlt = 164, Keys.RightAlt = 165, Keys.BrowserBack = 166, Keys.BrowserForward = 167,
  Keys.BrowserRefresh = 168, Keys.BrowserStop = 169, Keys.BrowserSearch = 170, Keys.BrowserFavorites = 171,
  Keys.BrowserHome = 172, Keys.VolumeMute = 173, Keys.VolumeDown = 174, Keys.VolumeUp = 175,
  Keys.MediaNextTrack = 176, Keys.MediaPreviousTrack = 177, Keys.MediaStop = 178, Keys.MediaPlayPause = 179,
  Keys.LaunchMail = 180, Keys.SelectMedia = 181, Keys.LaunchApplication1 = 182, Keys.LaunchApplication2 = 183,
  Keys.OemSemicolon = 186, Keys.OemPlus = 187, Keys.OemComma = 188, Keys.OemMinus = 189,
  Keys.OemPeriod = 190, Keys.OemQuestion = 191, Keys.OemTilde = 192, Keys.OemOpenBrackets = 219,
  Keys.OemPipe = 220, Keys.OemCloseBrackets = 221, Keys.OemQuotes = 222, Keys.Oem8 = 223,
  Keys.OemBackslash = 226, Keys.ProcessKey = 229, Keys.Attn = 246, Keys.Crsel = 247,
  Keys.Exsel = 248, Keys.EraseEof = 249, Keys.Play = 250, Keys.Zoom = 251,
  Keys.Pa1 = 253, Keys.OemClear = 254, Keys.ChatPadGreen = 0xCA, Keys.ChatPadOrange = 0xCB,
  Keys.Pause = 0x13, Keys.ImeConvert = 0x1c, Keys.ImeNoConvert = 0x1d, Keys.Kana = 0x15,
  Keys.Kanji = 0x19, Keys.OemAuto = 0xf3, Keys.OemCopy = 0xf2, Keys.OemEnlW = 0xf4
}
 Defines the keys on a keyboard. More...
 
enum  ButtonState { ButtonState.Released, ButtonState.Pressed }
 Defines a button state for buttons of mouse, gamepad or joystick. More...
 
enum  KeyState { KeyState.Up, KeyState.Down }
 Identifies the state of a keyboard key. More...
 

Enumeration Type Documentation

Defines a button state for buttons of mouse, gamepad or joystick.

Enumerator
Released 

The button is released.

Pressed 

The button is pressed.

Definition at line 12 of file ButtonState.cs.

Defines the keys on a keyboard.

Enumerator
None 

Reserved.

Back 

BACKSPACE key.

Tab 

TAB key.

Enter 

ENTER key.

CapsLock 

CAPS LOCK key.

Escape 

ESC key.

Space 

SPACEBAR key.

PageUp 

PAGE UP key.

PageDown 

PAGE DOWN key.

End 

END key.

Home 

HOME key.

Left 

LEFT ARROW key.

Up 

UP ARROW key.

Right 

RIGHT ARROW key.

Down 

DOWN ARROW key.

Select 

SELECT key.

Print 

PRINT key.

Execute 

EXECUTE key.

PrintScreen 

PRINT SCREEN key.

Insert 

INS key.

Delete 

DEL key.

Help 

HELP key.

D0 

Used for miscellaneous characters; it can vary by keyboard.

D1 

Used for miscellaneous characters; it can vary by keyboard.

D2 

Used for miscellaneous characters; it can vary by keyboard.

D3 

Used for miscellaneous characters; it can vary by keyboard.

D4 

Used for miscellaneous characters; it can vary by keyboard.

D5 

Used for miscellaneous characters; it can vary by keyboard.

D6 

Used for miscellaneous characters; it can vary by keyboard.

D7 

Used for miscellaneous characters; it can vary by keyboard.

D8 

Used for miscellaneous characters; it can vary by keyboard.

D9 

Used for miscellaneous characters; it can vary by keyboard.

A 

A key.

B 

B key.

C 

C key.

D 

D key.

E 

E key.

F 

F key.

G 

G key.

H 

H key.

I 

I key.

J 

J key.

K 

K key.

L 

L key.

M 

M key.

N 

N key.

O 

O key.

P 

P key.

Q 

Q key.

R 

R key.

S 

S key.

T 

T key.

U 

U key.

V 

V key.

W 

W key.

X 

X key.

Y 

Y key.

Z 

Z key.

LeftWindows 

Left Windows key.

RightWindows 

Right Windows key.

Apps 

Applications key.

Sleep 

Computer Sleep key.

NumPad0 

Numeric keypad 0 key.

NumPad1 

Numeric keypad 1 key.

NumPad2 

Numeric keypad 2 key.

NumPad3 

Numeric keypad 3 key.

NumPad4 

Numeric keypad 4 key.

NumPad5 

Numeric keypad 5 key.

NumPad6 

Numeric keypad 6 key.

NumPad7 

Numeric keypad 7 key.

NumPad8 

Numeric keypad 8 key.

NumPad9 

Numeric keypad 9 key.

Multiply 

Multiply key.

Add 

Add key.

Separator 

Separator key.

Subtract 

Subtract key.

Decimal 

Decimal key.

Divide 

Divide key.

F1 

F1 key.

F2 

F2 key.

F3 

F3 key.

F4 

F4 key.

F5 

F5 key.

F6 

F6 key.

F7 

F7 key.

F8 

F8 key.

F9 

F9 key.

F10 

F10 key.

F11 

F11 key.

F12 

F12 key.

F13 

F13 key.

F14 

F14 key.

F15 

F15 key.

F16 

F16 key.

F17 

F17 key.

F18 

F18 key.

F19 

F19 key.

F20 

F20 key.

F21 

F21 key.

F22 

F22 key.

F23 

F23 key.

F24 

F24 key.

NumLock 

NUM LOCK key.

Scroll 

SCROLL LOCK key.

LeftShift 

Left SHIFT key.

RightShift 

Right SHIFT key.

LeftControl 

Left CONTROL key.

RightControl 

Right CONTROL key.

LeftAlt 

Left ALT key.

RightAlt 

Right ALT key.

BrowserBack 

Browser Back key.

BrowserForward 

Browser Forward key.

BrowserRefresh 

Browser Refresh key.

BrowserStop 

Browser Stop key.

BrowserSearch 

Browser Search key.

BrowserFavorites 

Browser Favorites key.

BrowserHome 

Browser Start and Home key.

VolumeMute 

Volume Mute key.

VolumeDown 

Volume Down key.

VolumeUp 

Volume Up key.

MediaNextTrack 

Next Track key.

MediaPreviousTrack 

Previous Track key.

MediaStop 

Stop Media key.

MediaPlayPause 

Play/Pause Media key.

LaunchMail 

Start Mail key.

SelectMedia 

Select Media key.

LaunchApplication1 

Start Application 1 key.

LaunchApplication2 

Start Application 2 key.

OemSemicolon 

The OEM Semicolon key on a US standard keyboard.

OemPlus 

For any country/region, the '+' key.

OemComma 

For any country/region, the ',' key.

OemMinus 

For any country/region, the '-' key.

OemPeriod 

For any country/region, the '.' key.

OemQuestion 

The OEM question mark key on a US standard keyboard.

OemTilde 

The OEM tilde key on a US standard keyboard.

OemOpenBrackets 

The OEM open bracket key on a US standard keyboard.

OemPipe 

The OEM pipe key on a US standard keyboard.

OemCloseBrackets 

The OEM close bracket key on a US standard keyboard.

OemQuotes 

The OEM singled/double quote key on a US standard keyboard.

Oem8 

Used for miscellaneous characters; it can vary by keyboard.

OemBackslash 

The OEM angle bracket or backslash key on the RT 102 key keyboard.

ProcessKey 

IME PROCESS key.

Attn 

Attn key.

Crsel 

CrSel key.

Exsel 

ExSel key.

EraseEof 

Erase EOF key.

Play 

Play key.

Zoom 

Zoom key.

Pa1 

PA1 key.

OemClear 

CLEAR key.

ChatPadGreen 

Green ChatPad key.

ChatPadOrange 

Orange ChatPad key.

Pause 

PAUSE key.

ImeConvert 

IME Convert key.

ImeNoConvert 

IME NoConvert key.

Kana 

Kana key on Japanese keyboards.

Kanji 

Kanji key on Japanese keyboards.

OemAuto 

OEM Auto key.

OemCopy 

OEM Copy key.

OemEnlW 

OEM Enlarge Window key.

Definition at line 6 of file Keys.cs.

Identifies the state of a keyboard key.

Enumerator
Up 

Key is released.

Down 

Key is pressed.

Definition at line 12 of file KeyState.cs.