Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-02-07 20:14:23
Size: 1443
Editor: SheenaSmith
Comment: create page - basic format
Revision 2 as of 2011-02-07 20:32:14
Size: 1517
Editor: SheenaSmith
Comment: update content - w/ Sam
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
||scancode||keycode||'''name'''(description if necessary)||
||scancode||keycode||'''name'''(description)||
||scancode||keycode||'''name'''(description)||
||SDL_SCANCODE_SPACE||SDLK_SPACE||'''Space'''(space bar)||
||scancode||keycode||name (description if necessary)||
||scancode||keycode||name (description)||
||scancode||keycode||name (description)||
||SDL_SCANCODE_SPACE||SDLK_SPACE||Space (space bar)||
Line 31: Line 31:
== Related Enumerations ==
 .[[SDL_Keycode]]
 .[[SDL_Scancode]]
Line 32: Line 36:
 .[[SDL_KeyboardEvent]]

DRAFT

SDL_Scancode and SDL_Keycode

Enumerations of the SDL physical (scancode) and virtual (keycode) key representations.

Values

SDL_Scancode Value

SDL_Keycode Value

Key Name

scancode

keycode

name (description if necessary)

scancode

keycode

name (description)

scancode

keycode

name (description)

SDL_SCANCODE_SPACE

SDLK_SPACE

Space (space bar)

green

Code Examples

  //checks if a key is being remapped and prints what the remapping is
  if(event->key.keysym.scancode != SDL_GetScancodeFromKey(event->key.keysym.sym))
    printf("Physical %s key acting as %s key",
      SDL_GetScancodeName(event->key.keysym.scancode),
      SDL_GetKeyName(event->key.keysym.sym));

Remarks

You can add useful comments here

None: SDL_ScancodeAndKeycode (last edited 2016-06-10 19:52:22 by PhilippWiesemann)

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