Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_EventPrinter.cpp
| Show All 33 Lines | |||||
| { | { | ||||
| bool handled = true; | bool handled = true; | ||||
| GHOST_ASSERT(event, "event==0"); | GHOST_ASSERT(event, "event==0"); | ||||
| if (event->getType() == GHOST_kEventWindowUpdate) | if (event->getType() == GHOST_kEventWindowUpdate) | ||||
| return false; | return false; | ||||
| std::cout << "\nGHOST_EventPrinter::processEvent, time: " << (GHOST_TInt32)event->getTime() | std::cout << "GHOST_EventPrinter::processEvent, time: " << (GHOST_TInt32)event->getTime() | ||||
| << ", type: "; | << ", type: "; | ||||
| switch (event->getType()) { | switch (event->getType()) { | ||||
| case GHOST_kEventUnknown: | case GHOST_kEventUnknown: | ||||
| std::cout << "GHOST_kEventUnknown"; | std::cout << "GHOST_kEventUnknown"; | ||||
| handled = false; | handled = false; | ||||
| break; | break; | ||||
| case GHOST_kEventButtonUp: { | case GHOST_kEventButtonUp: { | ||||
| ▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | case GHOST_kEventWindowSize: | ||||
| break; | break; | ||||
| default: | default: | ||||
| std::cout << "not found"; | std::cout << "not found"; | ||||
| handled = false; | handled = false; | ||||
| break; | break; | ||||
| } | } | ||||
| std::cout << std::endl; | |||||
| std::cout.flush(); | std::cout.flush(); | ||||
| return handled; | return handled; | ||||
| } | } | ||||
| void GHOST_EventPrinter::getKeyString(GHOST_TKey key, char str[32]) const | void GHOST_EventPrinter::getKeyString(GHOST_TKey key, char str[32]) const | ||||
| { | { | ||||
| if ((key >= GHOST_kKeyComma) && (key <= GHOST_kKeyRightBracket)) { | if ((key >= GHOST_kKeyComma) && (key <= GHOST_kKeyRightBracket)) { | ||||
| ▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines | |||||