MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / IsVirtualKeyAnAppleIIKey

Function IsVirtualKeyAnAppleIIKey

source/Keyboard.cpp:358–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356 {0,0,0,0}}; // extended
357
358static bool IsVirtualKeyAnAppleIIKey(WPARAM wparam)
359{
360 if (wparam == VK_BACK ||
361 wparam == VK_TAB ||
362 wparam == VK_RETURN ||
363 wparam == VK_ESCAPE ||
364 wparam == VK_SPACE ||
365 (wparam >= VK_LEFT && wparam <= VK_DOWN) ||
366 wparam == VK_DELETE ||
367 (wparam >= '0' && wparam <= '9') ||
368 (wparam >= 'A' && wparam <= 'Z') ||
369 (wparam >= VK_NUMPAD0 && wparam <= VK_NUMPAD9) ||
370 (wparam >= VK_MULTIPLY && wparam <= VK_DIVIDE) ||
371 (wparam >= VK_OEM_1 && wparam <= VK_OEM_3) || // 7 in total
372 (wparam >= VK_OEM_4 && wparam <= VK_OEM_8) || // 5 in total
373 (wparam == VK_OEM_102))
374 {
375 return true;
376 }
377
378 return false;
379}
380
381// NB. Don't need to be concerned about if numpad/cursors are used for joystick,
382// since parent calls JoyProcessKey() just before this.

Callers 2

KeybQueueKeypressFunction · 0.85
KeybAnyKeyDownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected