| 1184 | |
| 1185 | #if defined(DEBUG) && defined(DGL_DEBUG_EVENTS) |
| 1186 | static int printModifiers(const uint32_t mods) |
| 1187 | { |
| 1188 | return fprintf(stderr, "Modifiers:%s%s%s%s\n", |
| 1189 | (mods & PUGL_MOD_SHIFT) ? " Shift" : "", |
| 1190 | (mods & PUGL_MOD_CTRL) ? " Ctrl" : "", |
| 1191 | (mods & PUGL_MOD_ALT) ? " Alt" : "", |
| 1192 | (mods & PUGL_MOD_SUPER) ? " Super" : ""); |
| 1193 | } |
| 1194 | |
| 1195 | static int printEvent(const PuglEvent* event, const char* prefix, const bool verbose) |
| 1196 | { |