Documentation of SFML 2.6.0

Warning: this page refers to an old version of SFML. Click here to switch to the latest version.
Loading...
Searching...
No Matches
sf::Keyboard::Scan Struct Reference

Scancodes. More...

#include <SFML/Window/Keyboard.hpp>

Public Types

enum  Scancode {
  Unknown = -1 , A = 0 , 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 , Num1 ,
  Num2 , Num3 , Num4 , Num5 ,
  Num6 , Num7 , Num8 , Num9 ,
  Num0 , Enter , Escape , Backspace ,
  Tab , Space , Hyphen , Equal ,
  LBracket , RBracket , Backslash , Semicolon ,
  Apostrophe , Grave , Comma , Period ,
  Slash , F1 , F2 , F3 ,
  F4 , F5 , F6 , F7 ,
  F8 , F9 , F10 , F11 ,
  F12 , F13 , F14 , F15 ,
  F16 , F17 , F18 , F19 ,
  F20 , F21 , F22 , F23 ,
  F24 , CapsLock , PrintScreen , ScrollLock ,
  Pause , Insert , Home , PageUp ,
  Delete , End , PageDown , Right ,
  Left , Down , Up , NumLock ,
  NumpadDivide , NumpadMultiply , NumpadMinus , NumpadPlus ,
  NumpadEqual , NumpadEnter , NumpadDecimal , Numpad1 ,
  Numpad2 , Numpad3 , Numpad4 , Numpad5 ,
  Numpad6 , Numpad7 , Numpad8 , Numpad9 ,
  Numpad0 , NonUsBackslash , Application , Execute ,
  ModeChange , Help , Menu , Select ,
  Redo , Undo , Cut , Copy ,
  Paste , VolumeMute , VolumeUp , VolumeDown ,
  MediaPlayPause , MediaStop , MediaNextTrack , MediaPreviousTrack ,
  LControl , LShift , LAlt , LSystem ,
  RControl , RShift , RAlt , RSystem ,
  Back , Forward , Refresh , Stop ,
  Search , Favorites , HomePage , LaunchApplication1 ,
  LaunchApplication2 , LaunchMail , LaunchMediaSelect , ScancodeCount
}
 

Detailed Description

Scancodes.

The enumerators are bound to a physical key and do not depend on the keyboard layout used by the operating system. Usually, the AT-101 keyboard can be used as reference for the physical position of the keys.

Definition at line 180 of file Keyboard.hpp.

Member Enumeration Documentation

◆ Scancode

Enumerator
Unknown 

Represents any scancode not present in this enum.

Keyboard a and A key.

Keyboard b and B key.

Keyboard c and C key.

Keyboard d and D key.

Keyboard e and E key.

Keyboard f and F key.

Keyboard g and G key.

Keyboard h and H key.

Keyboard i and I key.

Keyboard j and J key.

Keyboard k and K key.

Keyboard l and L key.

Keyboard m and M key.

Keyboard n and N key.

Keyboard o and O key.

Keyboard p and P key.

Keyboard q and Q key.

Keyboard r and R key.

Keyboard s and S key.

Keyboard t and T key.

Keyboard u and U key.

Keyboard v and V key.

Keyboard w and W key.

Keyboard x and X key.

Keyboard y and Y key.

Keyboard z and Z key.

Num1 

Keyboard 1 and ! key.

Num2 

Keyboard 2 and @ key.

Num3 

Keyboard 3 and # key.

Num4 

Keyboard 4 and $ key.

Num5 

Keyboard 5 and % key.

Num6 

Keyboard 6 and ^ key.

Num7 

Keyboard 7 and & key.

Num8 

Keyboard 8 and * key.

Num9 

Keyboard 9 and ) key.

Num0 

Keyboard 0 and ) key.

Enter 

Keyboard Enter/Return key.

Escape 

Keyboard Escape key.

Backspace 

Keyboard Backspace key.

Tab 

Keyboard Tab key.

Space 

Keyboard Space key.

Hyphen 

Keyboard - and _ key.

Equal 

Keyboard = and +.

LBracket 

Keyboard [ and { key.

RBracket 

Keyboard ] and } key.

Backslash 

Keyboard \ and | key OR various keys for Non-US keyboards.

Semicolon 

Keyboard ; and : key.

Apostrophe 

Keyboard ' and " key.

Grave 

Keyboard ` and ~ key.

Comma 

Keyboard , and < key.

Period 

Keyboard . and > key.

Slash 

Keyboard / and ? key.

F1 

Keyboard F1 key.

F2 

Keyboard F2 key.

F3 

Keyboard F3 key.

F4 

Keyboard F4 key.

F5 

Keyboard F5 key.

F6 

Keyboard F6 key.

F7 

Keyboard F7 key.

F8 

Keyboard F8 key.

F9 

Keyboard F9 key.

F10 

Keyboard F10 key.

F11 

Keyboard F11 key.

F12 

Keyboard F12 key.

F13 

Keyboard F13 key.

F14 

Keyboard F14 key.

F15 

Keyboard F15 key.

F16 

Keyboard F16 key.

F17 

Keyboard F17 key.

F18 

Keyboard F18 key.

F19 

Keyboard F19 key.

F20 

Keyboard F20 key.

F21 

Keyboard F21 key.

F22 

Keyboard F22 key.

F23 

Keyboard F23 key.

F24 

Keyboard F24 key.

CapsLock 

Keyboard Caps Lock key.

PrintScreen 

Keyboard Print Screen key.

ScrollLock 

Keyboard Scroll Lock key.

Pause 

Keyboard Pause key.

Insert 

Keyboard Insert key.

Home 

Keyboard Home key.

PageUp 

Keyboard Page Up key.

Delete 

Keyboard Delete Forward key.

End 

Keyboard End key.

PageDown 

Keyboard Page Down key.

Right 

Keyboard Right Arrow key.

Left 

Keyboard Left Arrow key.

Down 

Keyboard Down Arrow key.

Up 

Keyboard Up Arrow key.

NumLock 

Keypad Num Lock and Clear key.

NumpadDivide 

Keypad / key.

NumpadMultiply 

Keypad * key.

NumpadMinus 

Keypad - key.

NumpadPlus 

Keypad + key.

NumpadEqual 

keypad = key

NumpadEnter 

Keypad Enter/Return key.

NumpadDecimal 

Keypad . and Delete key.

Numpad1 

Keypad 1 and End key.

Numpad2 

Keypad 2 and Down Arrow key.

Numpad3 

Keypad 3 and Page Down key.

Numpad4 

Keypad 4 and Left Arrow key.

Numpad5 

Keypad 5 key.

Numpad6 

Keypad 6 and Right Arrow key.

Numpad7 

Keypad 7 and Home key.

Numpad8 

Keypad 8 and Up Arrow key.

Numpad9 

Keypad 9 and Page Up key.

Numpad0 

Keypad 0 and Insert key.

NonUsBackslash 

Keyboard Non-US \ and | key.

Application 

Keyboard Application key.

Execute 

Keyboard Execute key.

ModeChange 

Keyboard Mode Change key.

Help 

Keyboard Help key.

Menu 

Keyboard Menu key.

Select 

Keyboard Select key.

Redo 

Keyboard Redo key.

Undo 

Keyboard Undo key.

Cut 

Keyboard Cut key.

Copy 

Keyboard Copy key.

Paste 

Keyboard Paste key.

VolumeMute 

Keyboard Volume Mute key.

VolumeUp 

Keyboard Volume Up key.

VolumeDown 

Keyboard Volume Down key.

MediaPlayPause 

Keyboard Media Play Pause key.

MediaStop 

Keyboard Media Stop key.

MediaNextTrack 

Keyboard Media Next Track key.

MediaPreviousTrack 

Keyboard Media Previous Track key.

LControl 

Keyboard Left Control key.

LShift 

Keyboard Left Shift key.

LAlt 

Keyboard Left Alt key.

LSystem 

Keyboard Left System key.

RControl 

Keyboard Right Control key.

RShift 

Keyboard Right Shift key.

RAlt 

Keyboard Right Alt key.

RSystem 

Keyboard Right System key.

Back 

Keyboard Back key.

Forward 

Keyboard Forward key.

Refresh 

Keyboard Refresh key.

Stop 

Keyboard Stop key.

Search 

Keyboard Search key.

Favorites 

Keyboard Favorites key.

HomePage 

Keyboard Home Page key.

LaunchApplication1 

Keyboard Launch Application 1 key.

LaunchApplication2 

Keyboard Launch Application 2 key.

LaunchMail 

Keyboard Launch Mail key.

LaunchMediaSelect 

Keyboard Launch Media Select key.

ScancodeCount 

Keep last – the total number of scancodes.

Definition at line 192 of file Keyboard.hpp.


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