Wiki Page Content

Differences between revisions 6 and 7
Revision 6 as of 2016-10-20 20:54:29
Size: 1040
Comment: Added Version section.
Revision 7 as of 2016-10-20 20:56:07
Size: 1012
Comment: Removed old formatting and old comment.
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
Returns ^the^ scancode, or SDL_SCANCODE_UNKNOWN if the name wasn't recognized,,; call [[SDL_GetError]]() for more information,,. Returns the scancode, or SDL_SCANCODE_UNKNOWN if the name wasn't recognized; call [[SDL_GetError]]() for more information.
Line 21: Line 21:
/* <<Color2(col=green,text="Should this refer to the SDL_Scancode instead of just scancode?  Leave error call in?")>> */ /* <<Color2(col=green,text="Should this refer to the SDL_Scancode instead of just scancode?")>> */

DRAFT

SDL_GetScancodeFromName

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

Syntax

SDL_Scancode SDL_GetScancodeFromName(const char* name)

Function Parameters

name

the human-readable scancode name

Return Value

Returns the scancode, or SDL_SCANCODE_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

Version

This function is available since SDL 2.0.0.


CategoryAPI, CategoryKeyboard

None: SDL_GetScancodeFromName (last edited 2016-10-20 20:57:25 by PhilippWiesemann)

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