diff options
author | David Robillard <d@drobilla.net> | 2018-01-28 12:08:40 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-06-27 19:30:58 +0200 |
commit | bca65c93cd0228d408e0b6029b33da6449a5b567 (patch) | |
tree | 25e83c6595dba5e2c02b8ad567c593af9b20ab4c /pugl/pugl_osx.m | |
parent | 24aef2fc55c6d84f4ce0e8a3554d2d3dcbf79ee6 (diff) | |
download | pugl-bca65c93cd0228d408e0b6029b33da6449a5b567.tar.gz pugl-bca65c93cd0228d408e0b6029b33da6449a5b567.tar.bz2 pugl-bca65c93cd0228d408e0b6029b33da6449a5b567.zip |
Consistently use uint32_t everywhere
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r-- | pugl/pugl_osx.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index 39be7f0..12905d3 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -37,7 +37,7 @@ struct PuglInternalsImpl { PuglOpenGLView* glview; id window; NSEvent* nextEvent; - unsigned mods; + uint32_t mods; #ifdef PUGL_HAVE_CAIRO cairo_surface_t* surface; cairo_t* cr; @@ -233,12 +233,12 @@ struct PuglInternalsImpl { return YES; } -static unsigned +static uint32_t getModifiers(PuglView* view, NSEvent* ev) { const unsigned modifierFlags = [ev modifierFlags]; - unsigned mods = 0; + uint32_t mods = 0; mods |= (modifierFlags & NSShiftKeyMask) ? PUGL_MOD_SHIFT : 0; mods |= (modifierFlags & NSControlKeyMask) ? PUGL_MOD_CTRL : 0; mods |= (modifierFlags & NSAlternateKeyMask) ? PUGL_MOD_ALT : 0; @@ -359,7 +359,7 @@ keySymToSpecial(PuglView* view, NSEvent* ev) rloc.x, [[NSScreen mainScreen] frame].size.height - rloc.y, getModifiers(puglview, event), - (unsigned)[event buttonNumber] + 1 + (uint32_t)[event buttonNumber] + 1 }; puglDispatchEvent(puglview, (PuglEvent*)&ev); } @@ -378,7 +378,7 @@ keySymToSpecial(PuglView* view, NSEvent* ev) rloc.x, [[NSScreen mainScreen] frame].size.height - rloc.y, getModifiers(puglview, event), - (unsigned)[event buttonNumber] + 1 + (uint32_t)[event buttonNumber] + 1 }; puglDispatchEvent(puglview, (PuglEvent*)&ev); [self updateTrackingAreas]; @@ -486,7 +486,7 @@ keySymToSpecial(PuglView* view, NSEvent* ev) - (void) flagsChanged:(NSEvent*)event { - const unsigned mods = getModifiers(puglview, event); + const uint32_t mods = getModifiers(puglview, event); PuglEventType type = PUGL_NOTHING; PuglKey special = 0; |