MCPcopy Create free account
hub / github.com/ccMSC/ckb / getModel

Method getModel

src/ckb/keymap.cpp:495–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495KeyMap::Model KeyMap::getModel(const QString& name){
496 QString lower = name.toLower();
497 if(lower == "k65")
498 return K65;
499 if(lower == "k70")
500 return K70;
501 if(lower == "k95")
502 return K95;
503 if(lower == "strafe")
504 return STRAFE;
505 if(lower == "m65")
506 return M65;
507 if(lower == "sabre")
508 return SABRE;
509 if(lower == "scimitar")
510 return SCIMITAR;
511 return NO_MODEL;
512}
513
514QString KeyMap::getModel(KeyMap::Model model){
515 switch(model){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected