void HandleAimKeyBoardInput() { InputAtom InputEvent; while (DequeueSpecificEvent(&InputEvent, KEY_DOWN|KEY_UP|KEY_REPEAT)) {//!HandleTextInput( &InputEvent ) && if( InputEvent.usEvent == KEY_DOWN ) { switch (InputEvent.usParam) { case 'h': guiCurrentLaptopMode = LAPTOP_MODE_AIM_HISTORY; break; case 'l': guiCurrentLaptopMode = LAPTOP_MODE_AIM_LINKS; break; case ENTER: case 'm': if(!fFirstTimeIn) guiCurrentLaptopMode = LAPTOP_MODE_AIM_MEMBERS_SORTED_FILES; break; case 'p': guiCurrentLaptopMode = LAPTOP_MODE_AIM_POLICIES; break; default: HandleKeyBoardShortCutsForLapTop( InputEvent.usEvent, InputEvent.usParam, InputEvent.usKeyState ); break; } } } }
void HandleAimSortKeyBoardInput() { InputAtom InputEvent; while (DequeueSpecificEvent(&InputEvent, KEY_DOWN|KEY_UP|KEY_REPEAT)) {//!HandleTextInput( &InputEvent ) && if( InputEvent.usEvent == KEY_DOWN ) { switch (InputEvent.usParam) { case BACKSPACE: guiCurrentLaptopMode = LAPTOP_MODE_AIM; break; case 'a': guiCurrentLaptopMode = LAPTOP_MODE_AIM_MEMBERS_ARCHIVES; break; case 'f': guiCurrentLaptopMode = LAPTOP_MODE_AIM_MEMBERS; break; case ENTER: case 'm': guiCurrentLaptopMode = LAPTOP_MODE_AIM_MEMBERS_FACIAL_INDEX; break; default: HandleKeyBoardShortCutsForLapTop( InputEvent.usEvent, InputEvent.usParam, InputEvent.usKeyState ); break; } } } }
void HandleIMPQuizKeyBoard( void ) { InputAtom InputEvent; POINT MousePos; BOOLEAN fSkipFrame = FALSE; GetCursorPos(&MousePos); ScreenToClient(ghWindow, &MousePos); // In window coords! while( ( DequeueEvent(&InputEvent) == TRUE ) ) { if( fSkipFrame == FALSE ) { // HOOK INTO MOUSE HOOKS // //if( (InputEvent.usEvent == KEY_DOWN ) && ( InputEvent.usParam >= '1' ) && ( InputEvent.usParam <= '9') ) //{ // if( ( UINT16 )( iNumberOfPersonaButtons ) >= InputEvent.usParam - '0' ) // { // reset buttons // ResetQuizAnswerButtons( ); // ok, check to see if button was disabled, if so, re enable // CheckStateOfTheConfirmButton( ); // toggle this button on // ButtonList[ giIMPPersonalityQuizAnswerButton[ InputEvent.usParam - '1' ] ]->uiFlags |= (BUTTON_CLICKED_ON); // iCurrentAnswer = InputEvent.usParam - '1'; // PrintImpText( ); // the current and last question numbers // PrintQuizQuestionNumber( ); // fReDrawCharProfile = TRUE; // fSkipFrame = TRUE; // } // } // else if( ( iCurrentAnswer != -1 ) && ( InputEvent.usEvent == KEY_DOWN ) && ( InputEvent.usParam == ENTER ) ) // { // reset all the buttons // ResetQuizAnswerButtons( ); // copy the answer into the list // iQuizAnswerList[ giCurrentPersonalityQuizQuestion ] = iCurrentAnswer; // reset answer for next question // iCurrentAnswer = -1; // next question, JOHNNY! // giCurrentPersonalityQuizQuestion++; // giMaxPersonalityQuizQuestion++; // OPPS!, done..time to finish up // if( giCurrentPersonalityQuizQuestion > 15) // { // iCurrentImpPage = IMP_PERSONALITY_FINISH; // process // CompileQuestionsInStatsAndWhatNot( ); // } // fSkipFrame = TRUE; // } // else if( ( InputEvent.usEvent == KEY_DOWN ) && ( InputEvent.usParam == '=' ) ) // { // MoveAheadAQuestion( ); // fSkipFrame = TRUE; // } // else if( ( InputEvent.usEvent == KEY_DOWN ) && ( InputEvent.usParam == '-' ) ) // { // MoveBackAQuestion( ); // fSkipFrame = TRUE; // } // else // { switch(InputEvent.usEvent) { case LEFT_BUTTON_DOWN: MouseSystemHook(LEFT_BUTTON_DOWN, (INT16)MousePos.x, (INT16)MousePos.y,_LeftButtonDown, _RightButtonDown); break; case LEFT_BUTTON_UP: MouseSystemHook(LEFT_BUTTON_UP, (INT16)MousePos.x, (INT16)MousePos.y ,_LeftButtonDown, _RightButtonDown); break; case RIGHT_BUTTON_DOWN: MouseSystemHook(RIGHT_BUTTON_DOWN, (INT16)MousePos.x, (INT16)MousePos.y,_LeftButtonDown, _RightButtonDown); break; case RIGHT_BUTTON_UP: MouseSystemHook(RIGHT_BUTTON_UP, (INT16)MousePos.x, (INT16)MousePos.y,_LeftButtonDown, _RightButtonDown); break; case RIGHT_BUTTON_REPEAT: MouseSystemHook(RIGHT_BUTTON_REPEAT, (INT16)MousePos.x, (INT16)MousePos.y,_LeftButtonDown, _RightButtonDown); break; case LEFT_BUTTON_REPEAT: MouseSystemHook(LEFT_BUTTON_REPEAT, (INT16)MousePos.x, (INT16)MousePos.y,_LeftButtonDown, _RightButtonDown); break; default: HandleKeyBoardShortCutsForLapTop( InputEvent.usEvent, InputEvent.usParam, InputEvent.usKeyState ); break; // } } } } return; }