Dgame.System.Keyboard
« Go back
Bottom- interface Keyboard;
- Represent the Keyboard
Author:
Randy Schuett (rswhite4@googlemail.com)
- static nothrow @nogc bool isPressed(Code code);
- Returns if the given Keyboard.Code is pressed.
Examples:
if (Keyboard.isPressed(Keyboard.Code.Escape)) writeln("escape is pressed.");
- static nothrow @nogc Mod getModifier();
- Returns the current Keyboard modifier.
See:
Mod enum
- static nothrow @nogc void setModifier(Mod mod);
- Set the current Keyboard modifier.
See:
Mod enum
- static nothrow @nogc bool hasScreenSupport();
- Returns if screen keyboard is supported.
- enum Mod: int;
- All supported Keyboard modifiers.
- None
- 0 (no modifier is applicable)
- LShift
- the left Shift key is down
- RShift
- the right Shift key is down
- LCtrl
- the left Ctrl (Control) key is down
- RCtrl
- the right Ctrl (Control) key is down
- LAlt
- the left Alt key is down
- RAlt
- the right Alt key is down
- LGui
- the left GUI key (often the Windows key) is down
- RGui
- the right GUI key (often the Windows key) is down
- Num
- the Num Lock key (may be located on an extended keypad) is down
- Caps
- the Caps Lock key is down
- Mode
- the AltGr key is down
- Ctrl
- (Mod.LCtrl|Mod.RCtrl)
- Shift
- (Mod.LShift|Mod.RShift)
- Alt
- (Mod.LAlt|Mod.RAlt)
- Gui
- (Mod.LGui|Mod.RGui)
- deprecated alias Code = Key;
- An alias
- enum Key: int;
- Supported Keyboard Codes.
These are all possible/supported keys.
- Unknown
- Return
- Escape
- Backspace
- Tab
- Space
- Exclaim
- Quotedbl
- Hash
- Percent
- Dollar
- Ampersand
- Quote
- Leftparen
- Rightparen
- Asterisk
- Plus
- Comma
- Minus
- Period
- Slash
- Dot
- Shortcut
- Esc
- Shortcut
- Num0
- Num1
- Num2
- Num3
- Num4
- Num5
- Num6
- Num7
- Num8
- Num9
- Colon
- Semicolon
- Less
- Equals
- Greater
- Question
- At
- Leftbracket
- Backslash
- Rightbracket
- Caret
- Underscore
- Backquote
- A
- B
- C
- D
- E
- F
- G
- H
- I
- J
- K
- L
- M
- N
- O
- P
- Q
- R
- S
- T
- U
- V
- W
- X
- Y
- Z
- Capslock
- F1
- F2
- F3
- F4
- F5
- F6
- F7
- F8
- F9
- F10
- F11
- F12
- Printscreen
- Scrolllock
- Pause
- Insert
- Home
- PageUp
- Delete
- End
- PageDown
- Right
- Left
- Down
- Up
- NumLockClear
- KP_Divide
- KP_Multiply
- KP_Minus
- KP_Plus
- KP_Enter
- KP_1
- KP_2
- KP_3
- KP_4
- KP_5
- KP_6
- KP_7
- KP_8
- KP_9
- KP_0
- F13
- F14
- F15
- F16
- F17
- F18
- F19
- F20
- F21
- F22
- F23
- F24
- LCtrl
- LShift
- LAlt
- LGui
- RCtrl
- RShift
- RAlt
- RGui
Page generated by Ddoc.
« Go back