MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / KeyCodeMap

Class KeyCodeMap

src/platform/macos/input.cpp:49–52  ·  view source on GitHub ↗

A struct to hold a Windows keycode to Mac virtual keycode mapping.

Source from the content-addressed store, hash-verified

47
48 // A struct to hold a Windows keycode to Mac virtual keycode mapping.
49 struct KeyCodeMap {
50 int win_keycode;
51 int mac_keycode;
52 };
53
54 // Customized less operator for using std::lower_bound() on a KeyCodeMap array.
55 bool operator<(const KeyCodeMap &a, const KeyCodeMap &b) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected