MCPcopy Create free account
hub / github.com/TASEmulators/fceux / getString

Method getString

src/drivers/Qt/input.cpp:324–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324int hotkey_t::getString(char *s)
325{
326 s[0] = 0;
327
328 if (shortcut)
329 {
330 strcpy(s, shortcut->key().toString().toStdString().c_str());
331 }
332 //if ( sdl.modifier != 0 )
333 //{
334 // if ( sdl.modifier & (KMOD_LSHIFT | KMOD_RSHIFT) )
335 // {
336 // strcat( s, "Shift+" );
337 // }
338
339 // if ( sdl.modifier & (KMOD_LALT | KMOD_RALT) )
340 // {
341 // strcat( s, "Alt+" );
342 // }
343
344 // if ( sdl.modifier & (KMOD_LCTRL | KMOD_RCTRL) )
345 // {
346 // strcat( s, "Ctrl+" );
347 // }
348 //}
349
350 //strcat( s, SDL_GetKeyName(sdl.value) );
351
352 return 0;
353}
354
355int hotkey_t::getState(void)
356{

Callers 3

changeKeySeq0Method · 0.80
changeKeySeq1Method · 0.80
HotKeySelectDialog_tMethod · 0.80

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected