Skip to content

Instantly share code, notes, and snippets.

View Exmirai's full-sized avatar

UniqueUlysees Exmirai

View GitHub Profile
@Exmirai
Exmirai / sdl_key_translation_sample.cc
Created February 28, 2016 13:31 — forked from khrona/sdl_key_translation_sample.cc
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;