| 64 | } |
| 65 | |
| 66 | uint8_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 | |
| 86 | void Keyboard_Class::updateKeyList() |
| 87 | { |
nothing calls this directly
no outgoing calls
no test coverage detected