Wiki Page Content

Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2013-09-01 18:45:22
Size: 934
Comment: Updated usage of Color2 macro.
Revision 5 as of 2016-04-10 22:16:36
Size: 932
Comment: Removed old formatting.
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
Returns key code, or SDLK_UNKNOWN if the name wasn't recognized,,; call [[SDL_GetError]]() for more information,,. Returns key code, or SDLK_UNKNOWN if the name wasn't recognized; call [[SDL_GetError]]() for more information.
Line 21: Line 21:
<<Color2(col=green,text="Should it refer to SDL_Keycode instead of key code? Leave error call in?")>> /* <<Color2(col=green,text="Should it refer to SDL_Keycode instead of key code? Leave error call in?")>> */
Line 32: Line 32:
 .[[SDL_GetKeyFromScancode]] ???  .[[SDL_GetKeyFromScancode]]

DRAFT

SDL_GetKeyFromName

Use this function to get a key code from a human-readable name.

Syntax

SDL_Keycode SDL_GetKeyFromName(const char* name)

Function Parameters

name

the human-readable key name

Return Value

Returns key code, or SDLK_UNKNOWN if the name wasn't recognized; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryKeyboard

None: SDL_GetKeyFromName (last edited 2016-04-10 22:16:36 by PhilippWiesemann)

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