diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-27 04:36:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-27 04:36:50 +0400 |
commit | 857dedbc584fcf0af0afa13f008377fd9a83dad1 (patch) | |
tree | 1a6d3fa834658422032f4de3140472b82a8cbfa6 /intern/ghost/test/multitest/EventToBuf.c | |
parent | 822362189badefd6c0014f608d36d98e8ab57282 (diff) |
style cleanup
Diffstat (limited to 'intern/ghost/test/multitest/EventToBuf.c')
-rw-r--r-- | intern/ghost/test/multitest/EventToBuf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/intern/ghost/test/multitest/EventToBuf.c b/intern/ghost/test/multitest/EventToBuf.c index f58d243fb0b..f988f0fb86a 100644 --- a/intern/ghost/test/multitest/EventToBuf.c +++ b/intern/ghost/test/multitest/EventToBuf.c @@ -34,7 +34,8 @@ #include "GHOST_C-api.h" #include "EventToBuf.h" -char *eventtype_to_string(GHOST_TEventType type) { +char *eventtype_to_string(GHOST_TEventType type) +{ switch(type) { case GHOST_kEventCursorMove: return "CursorMove"; case GHOST_kEventButtonDown: return "ButtonDown"; @@ -55,7 +56,8 @@ char *eventtype_to_string(GHOST_TEventType type) { } } -static char *keytype_to_string(GHOST_TKey key) { +static char *keytype_to_string(GHOST_TKey key) +{ #define K(key) case GHOST_k##key: return #key; switch (key) { K(KeyBackSpace); @@ -193,7 +195,8 @@ static char *keytype_to_string(GHOST_TKey key) { #undef K } -void event_to_buf(GHOST_EventHandle evt, char buf[128]) { +void event_to_buf(GHOST_EventHandle evt, char buf[128]) +{ GHOST_TEventType type= GHOST_GetEventType(evt); double time= (double) ((GHOST_TInt64) GHOST_GetEventTime(evt))/1000; GHOST_WindowHandle win= GHOST_GetEventWindow(evt); |