MCPcopy Create free account
hub / github.com/deskflow/deskflow / mapVirtualKeyToKeyButton

Method mapVirtualKeyToKeyButton

src/lib/platform/OSXKeyState.cpp:910–914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

908}
909
910KeyButton OSXKeyState::mapVirtualKeyToKeyButton(uint32_t keyCode)
911{
912 // 'A' maps to 0 so shift every id
913 return static_cast<KeyButton>(keyCode + KeyButtonOffset);
914}
915
916uint32_t OSXKeyState::mapKeyButtonToVirtualKey(KeyButton keyButton)
917{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected