afegida tecla de reset
This commit is contained in:
@@ -37,6 +37,7 @@ enum inputs_e
|
|||||||
input_window_inc_size,
|
input_window_inc_size,
|
||||||
input_window_dec_size,
|
input_window_dec_size,
|
||||||
input_video_shaders,
|
input_video_shaders,
|
||||||
|
input_reset,
|
||||||
|
|
||||||
// Input obligatorio
|
// Input obligatorio
|
||||||
input_number_of_inputs
|
input_number_of_inputs
|
||||||
|
|||||||
@@ -123,6 +123,7 @@ void Director::initInput()
|
|||||||
input->bindKey(input_window_inc_size, SDL_SCANCODE_F2);
|
input->bindKey(input_window_inc_size, SDL_SCANCODE_F2);
|
||||||
input->bindKey(input_window_fullscreen, SDL_SCANCODE_F3);
|
input->bindKey(input_window_fullscreen, SDL_SCANCODE_F3);
|
||||||
input->bindKey(input_video_shaders, SDL_SCANCODE_F4);
|
input->bindKey(input_video_shaders, SDL_SCANCODE_F4);
|
||||||
|
input->bindKey(input_reset, SDL_SCANCODE_F10);
|
||||||
|
|
||||||
const int numGamePads = input->getNumControllers();
|
const int numGamePads = input->getNumControllers();
|
||||||
for (int i = 0; i < numGamePads; ++i)
|
for (int i = 0; i < numGamePads; ++i)
|
||||||
|
|||||||
@@ -2133,6 +2133,12 @@ void Game::checkInput()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (input->checkInput(input_reset, DO_NOT_ALLOW_REPEAT))
|
||||||
|
{
|
||||||
|
section->name = SECTION_PROG_LOGO;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
else if (input->checkInput(input_pause, DO_NOT_ALLOW_REPEAT))
|
else if (input->checkInput(input_pause, DO_NOT_ALLOW_REPEAT))
|
||||||
{
|
{
|
||||||
pause(!paused);
|
pause(!paused);
|
||||||
|
|||||||
Reference in New Issue
Block a user