Modificades les tecles de funció
This commit is contained in:
22
README.md
22
README.md
@@ -31,17 +31,19 @@ El joc està optimitzat per a ser jugat amb un mando de jocs, encara que un dels
|
|||||||
|
|
||||||
## Altres tecles
|
## Altres tecles
|
||||||
|
|
||||||
| Tecla | Funció |
|
| Tecla | Funció |
|
||||||
|-------------|----------------------------------------------|
|
|:-----------:|----------------------------------------------------|
|
||||||
| **ESC** | Tancar el joc |
|
| **ESC** | Tancar el joc |
|
||||||
| **F1** | Fa la finestra més xicoteta |
|
| **P** | Pausar el joc |
|
||||||
| **F2** | Fa la finestra més gran |
|
| **F1** | Fa la finestra més xicoteta |
|
||||||
|
| **F2** | Fa la finestra més gran |
|
||||||
| **F3** | Alterna entre mode de pantalla completa i finestra |
|
| **F3** | Alterna entre mode de pantalla completa i finestra |
|
||||||
| **F4** | Activa o desactiva els shaders |
|
| **F4** | Activa o desactiva el filtre de pantalla |
|
||||||
| **F5** | Activa o desactiva l'àudio |
|
| **F5** | Activa o desactiva el mode d'escalat sencer |
|
||||||
| **F6** | Activa o desactiva el dispar automàtic |
|
| **F6** | Activa o desactiva l'àudio |
|
||||||
| **F7** | Canvia l'idioma del joc i reinicia |
|
| **F7** | Activa o desactiva el dispar automàtic |
|
||||||
| **F10** | Reset del joc |
|
| **F8** | Canvia l'idioma del joc (Provoca el reinici) |
|
||||||
|
| **F10** | Reinicia el joc |
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://php.sustancia.synology.me/images/ccae/ccae2.png" alt="Joc" width="50%" />
|
<img src="https://php.sustancia.synology.me/images/ccae/ccae2.png" alt="Joc" width="50%" />
|
||||||
|
|||||||
@@ -182,17 +182,21 @@ void Director::bindInputs()
|
|||||||
Input::get()->bindKey(InputType::SERVICE, SDL_SCANCODE_0);
|
Input::get()->bindKey(InputType::SERVICE, SDL_SCANCODE_0);
|
||||||
Input::get()->bindKey(InputType::EXIT, SDL_SCANCODE_ESCAPE);
|
Input::get()->bindKey(InputType::EXIT, SDL_SCANCODE_ESCAPE);
|
||||||
Input::get()->bindKey(InputType::PAUSE, SDL_SCANCODE_P);
|
Input::get()->bindKey(InputType::PAUSE, SDL_SCANCODE_P);
|
||||||
|
|
||||||
Input::get()->bindKey(InputType::WINDOW_DEC_SIZE, SDL_SCANCODE_F1);
|
Input::get()->bindKey(InputType::WINDOW_DEC_SIZE, SDL_SCANCODE_F1);
|
||||||
Input::get()->bindKey(InputType::WINDOW_INC_SIZE, SDL_SCANCODE_F2);
|
Input::get()->bindKey(InputType::WINDOW_INC_SIZE, SDL_SCANCODE_F2);
|
||||||
Input::get()->bindKey(InputType::WINDOW_FULLSCREEN, SDL_SCANCODE_F3);
|
Input::get()->bindKey(InputType::WINDOW_FULLSCREEN, SDL_SCANCODE_F3);
|
||||||
Input::get()->bindKey(InputType::VIDEO_SHADERS, SDL_SCANCODE_F4);
|
Input::get()->bindKey(InputType::VIDEO_SHADERS, SDL_SCANCODE_F4);
|
||||||
Input::get()->bindKey(InputType::MUTE, SDL_SCANCODE_F5);
|
Input::get()->bindKey(InputType::VIDEO_INTEGER_SCALE, SDL_SCANCODE_F5);
|
||||||
Input::get()->bindKey(InputType::AUTO_FIRE, SDL_SCANCODE_F6);
|
|
||||||
Input::get()->bindKey(InputType::CHANGE_LANG, SDL_SCANCODE_F7);
|
Input::get()->bindKey(InputType::MUTE, SDL_SCANCODE_F6);
|
||||||
Input::get()->bindKey(InputType::SHOWINFO, SDL_SCANCODE_F8);
|
Input::get()->bindKey(InputType::AUTO_FIRE, SDL_SCANCODE_F7);
|
||||||
Input::get()->bindKey(InputType::VIDEO_INTEGER_SCALE, SDL_SCANCODE_F9);
|
Input::get()->bindKey(InputType::CHANGE_LANG, SDL_SCANCODE_F8);
|
||||||
|
|
||||||
Input::get()->bindKey(InputType::RESET, SDL_SCANCODE_F10);
|
Input::get()->bindKey(InputType::RESET, SDL_SCANCODE_F10);
|
||||||
|
|
||||||
|
Input::get()->bindKey(InputType::SHOWINFO, SDL_SCANCODE_F12);
|
||||||
|
|
||||||
// Asigna botones a inputs
|
// Asigna botones a inputs
|
||||||
const int num_gamepads = Input::get()->getNumControllers();
|
const int num_gamepads = Input::get()->getNumControllers();
|
||||||
for (int i = 0; i < num_gamepads; ++i)
|
for (int i = 0; i < num_gamepads; ++i)
|
||||||
|
|||||||
Reference in New Issue
Block a user