Skip to content

Instantly share code, notes, and snippets.

View zehel2892's full-sized avatar

Sayan Bhattacharjee zehel2892

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;