//-------------------------------------------------------------- // EVENT //-------------------------------------------------------------- void ofApp::keyPressed(int key){ //フルスクリーンモードの切り替え switchFullScreenMode(key); if(key == ' ') { showLabels = !showLabels; } }
bool ViewerWindow::onCommand(WPARAM wParam, LPARAM lParam) { if (HIWORD(wParam) == 1) { int transl = translateAccelToTB(LOWORD(wParam)); if (transl != -1) { wParam = transl; } } switch (wParam) { case IDS_ABOUT_VIEWER: onAbout(); return true; case IDS_TB_CONNOPTIONS: dialogConnectionOptions(); return true; case IDS_TB_CONNINFO: dialogConnectionInfo(); return true; case IDS_TB_PROCESSINFO: dialogProcessInfo(); return true; case IDS_TB_PAUSE: commandPause(); return true; case IDS_TB_REFRESH: m_viewerCore->refreshFrameBuffer(); return true; case IDS_TB_CTRLALTDEL: commandCtrlAltDel(); return true; case IDS_TB_CTRLESC: commandCtrlEsc(); return true; case IDS_TB_CTRL: commandCtrl(); return true; case IDS_TB_ALT: commandAlt(); return true; case IDS_TB_TOOLBAR: commandToolBar(); return true; case IDS_TB_TRANSFER: showFileTransferDialog(); return true; case IDS_TB_NEWCONNECTION: commandNewConnection(); return true; case IDS_TB_SAVESESSION: commandSaveSession(); return true; case IDS_TB_SCALEIN: commandScaleIn(); return true; case IDS_TB_SCALEOUT: commandScaleOut(); return true; case IDS_TB_SCALE100: commandScale100(); return true; case IDS_TB_SCALEAUTO: commandScaleAuto(); return true; case IDS_TB_FULLSCREEN: switchFullScreenMode(); return true; case IDS_TB_CONFIGURATION: dialogConfiguration(); return true; } return false; }