Skip to content

Instantly share code, notes, and snippets.

View Exmirai's full-sized avatar

UniqueUlysees Exmirai

View GitHub Profile

Keybase proof

I hereby claim:

  • I am exmirai on github.
  • I am epicloyd (https://keybase.io/epicloyd) on keybase.
  • I have a public key ASCBJUTsfL5HdnkJ5iGmFllEai1cpXc3Blftn9UPxlM0CAo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am exmirai on github.
* I am epicloyd (https://keybase.io/epicloyd) on keybase.
* I have a public key ASCBJUTsfL5HdnkJ5iGmFllEai1cpXc3Blftn9UPxlM0CAo
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am exmirai on github.
* I am epicloyd (https://keybase.io/epicloyd) on keybase.
* I have a public key whose fingerprint is 0729 84D0 D667 0D0D E578 CC76 DB3A 2F3A 4701 023C
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am epicloyd on github.
* I am epicloyd (https://keybase.io/epicloyd) on keybase.
* I have a public key whose fingerprint is 0729 84D0 D667 0D0D E578 CC76 DB3A 2F3A 4701 023C
To claim this, I am signing this object:
@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;