src/sdl/input.cc
/*
 * Loads the input mapping, allowing for key presses and releases to be used
 * for emulation.
 */
Loads the input mapping, allowing for key presses and releases to be used
for emulation.
Loads the input mapping allowing for key presses and releases to be used for emulation .
Input::Input(Config *config) {
  for (int i = 0; i < NUM_BUTTONS; i++) {
    button_map_[i] = SDL_GetKeyFromName(config->Get(kButtonNames_[i],
                     SDL_GetKeyName(kDefaultButtonMap_[i])));
  }
  return;
}
Input :: Input ( Config * config ) { for ( int i = 0 ; i < NUM_BUTTONS ; i ++ ) { button_map_ [ i ] = SDL_GetKeyFromName ( config -> Get ( kButtonNames_ [ i ] , SDL_GetKeyName ( kDefaultButtonMap_ [ i ] ) ) ) ; } return ; }
Loads the input mapping, allowing for key presses and releases to be used
 for emulation.
Loads the input mapping allowing for key presses and releases to be used for emulation .
// Load the button mapping from the provided config file.