Skip to content

Instantly share code, notes, and snippets.

View Exmirai's full-sized avatar

UniqueUlysees Exmirai

View GitHub Profile
@khrona
khrona / sdl_key_translation_sample.cc
Created August 2, 2012 17:53
Example of how to translate SDL Key Events into Awesomium Keyboard Events
/// Forward declaration
int getWebKeyFromSDLKey(SDLKey key);
///
/// Inject an SDL Key Event into a given WebView
///
void handleSDLKeyEvent(Awesomium::WebView* webView, const SDL_Event& event) {
if (!(event.type == SDL_KEYDOWN || event.type == SDL_KEYUP))
return;