MCPcopy Create free account
hub / github.com/clementgallet/libTAS / input_description

Method input_description

src/program/KeyMapping.cpp:216–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216std::string KeyMapping::input_description(keysym_t ks)
217{
218 for (auto iter : input_list[INPUTLIST_KEYBOARD_LATIN]) {
219 if (iter.type == SingleInput::IT_KEYBOARD) {
220 if (iter.which == ks) {
221 return iter.description;
222 }
223 }
224 }
225
226 for (auto iter : input_list[INPUTLIST_KEYBOARD_MISC]) {
227 if (iter.type == SingleInput::IT_KEYBOARD) {
228 if (iter.which == ks) {
229 return iter.description;
230 }
231 }
232 }
233
234 return "";
235}
236
237void KeyMapping::default_hotkeys()
238{

Callers 2

dataMethod · 0.80
updateInputRowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected