MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / getqual

Function getqual

src/inputdevice.cpp:1127–1152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1125}
1126
1127static uae_u64 getqual (const TCHAR **pp)
1128{
1129 const TCHAR *p = *pp;
1130 uae_u64 mask = 0;
1131
1132 while ((*p >= 'A' && *p <= 'Z') || (*p >= 'a' && *p <= 'z')) {
1133 bool press = (*p >= 'A' && *p <= 'Z');
1134 int shift, inc;
1135
1136 if (press) {
1137 shift = *p - 'A';
1138 inc = 0;
1139 } else {
1140 shift = *p - 'a';
1141 inc = 1;
1142 }
1143 mask |= ID_FLAG_QUALIFIER1 << (shift * 2 + inc);
1144 p++;
1145 }
1146 while (*p != 0 && *p !='.' && *p != ',')
1147 p++;
1148 if (*p == '.' || *p == ',')
1149 p++;
1150 *pp = p;
1151 return mask;
1152}
1153
1154static int getnum (const TCHAR **pp)
1155{

Callers 1

read_inputdevice_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected