| 322 | } |
| 323 | |
| 324 | int 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 | |
| 355 | int hotkey_t::getState(void) |
| 356 | { |
no test coverage detected