Wiki Page Content

Differences between revisions 5 and 7 (spanning 2 versions)
Revision 5 as of 2010-06-30 05:39:25
Size: 1032
Editor: SheenaSmith
Comment: minor change
Revision 7 as of 2010-07-23 20:06:53
Size: 1305
Editor: SheenaSmith
Comment: add content
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
||KMOD_NONE||0||
||KMOD_LSHIFT||the left Shift key||
||KMOD_RSHIFT||the right Shift key||
||KMOD_LCTRL||the left Ctrl (Control) key
||
||KMOD_RCTRL||the right Ctrl (Control) key||
||KMOD_LALT||the left Alt key
||
||KMOD_RALT||the right Alt key||
||KMOD_LGUI||the left GUI key (often the Windows key)||
||KMOD_RGUI||the right GUI key (often the Windows key)||
||KMOD_NUM||the Num Lock key (may be located on an extended keypad)||
||KMOD_CAPS||the Caps Lock key||
||KMOD_MODE||the !AltGr key||
||KMOD_NONE||0 (no modifier is applicable)||
||KMOD_LSHIFT||the left Shift key is down||
||KMOD_RSHIFT||the right Shift key is down||
||KMOD_LCTRL||the left Ctrl (Control) key is down
||
||KMOD_RCTRL||the right Ctrl (Control) key is down||
||KMOD_LALT||the left Alt key is down
||
||KMOD_RALT||the right Alt key is down||
||KMOD_LGUI||the left GUI key (often the Windows key) is down||
||KMOD_RGUI||the right GUI key (often the Windows key) is down||
||KMOD_NUM||the Num Lock key (may be located on an extended keypad) is down||
||KMOD_CAPS||the Caps Lock key is down||
||KMOD_MODE||the !AltGr key is down||
||KMOD_CTRL||(KMOD_LCTRL|KMOD_RCTRL)||
||KMOD_SHIFT||(KMOD_LSHIFT|KMOD_RSHIFT)||
||KMOD_ALT||(KMOD_LALT|KMOD_RALT)||
||KMOD_GUI||(KMOD_LGUI|KMOD_RGUI)||

DRAFT

SDLMod

An enumeration of key modifier masks.

Values

KMOD_NONE

0 (no modifier is applicable)

KMOD_LSHIFT

the left Shift key is down

KMOD_RSHIFT

the right Shift key is down

KMOD_LCTRL

the left Ctrl (Control) key is down

KMOD_RCTRL

the right Ctrl (Control) key is down

KMOD_LALT

the left Alt key is down

KMOD_RALT

the right Alt key is down

KMOD_LGUI

the left GUI key (often the Windows key) is down

KMOD_RGUI

the right GUI key (often the Windows key) is down

KMOD_NUM

the Num Lock key (may be located on an extended keypad) is down

KMOD_CAPS

the Caps Lock key is down

KMOD_MODE

the AltGr key is down

KMOD_CTRL

(KMOD_LCTRL|KMOD_RCTRL)

KMOD_SHIFT

(KMOD_LSHIFT|KMOD_RSHIFT)

KMOD_ALT

(KMOD_LALT|KMOD_RALT)

KMOD_GUI

(KMOD_LGUI|KMOD_RGUI)

KMOD_RESERVED

reserved for future use

Code Examples

You can add your code example here

Remarks

These may be OR'd together.


CategoryEnum

None: SDL_Keymod (last edited 2014-12-21 21:11:25 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit