MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / getKey

Method getKey

lib/utility/Keyboard.cpp:66–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66uint8_t Keyboard_Class::getKey(Point2D_t keyCoor)
67{
68 uint8_t ret = 0;
69
70 if ((keyCoor.x < 0) || (keyCoor.y < 0))
71 {
72 return 0;
73 }
74 if (_keys_state_buffer.ctrl || _keys_state_buffer.shift ||
75 _is_caps_locked)
76 {
77 ret = _key_value_map[keyCoor.y][keyCoor.x].value_second;
78 }
79 else
80 {
81 ret = _key_value_map[keyCoor.y][keyCoor.x].value_first;
82 }
83 return ret;
84}
85
86void Keyboard_Class::updateKeyList()
87{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected