@@ -84,8 +84,8 @@ _keyboard keyboards[] = {{"kESCAPE", SDL_SCANCODE_ESCAPE}, {"k1", SDL_SCANCODE_1
8484 {" kNEXT" , SDL_SCANCODE_AUDIONEXT}, {" kINSERT" , SDL_SCANCODE_INSERT}, {" kDELETE" , SDL_SCANCODE_DELETE},
8585 {" kLWIN" , SDL_SCANCODE_LGUI}, {" kRWIN" , SDL_SCANCODE_RGUI}, {" kAPPS" , SDL_SCANCODE_APPLICATION},
8686 {" kPAUSE" , SDL_SCANCODE_PAUSE},
87- // {"mouse1", MOUSE_1}, {"mouse2", MOUSE_2}, {"mouse3", MOUSE_3}, {"mouse4", MOUSE_4},
88- // {"mouse5", MOUSE_5}, {"mouse6", MOUSE_6}, {"mouse7", MOUSE_7}, {"mouse8", MOUSE_8},
87+ {" mouse1" , MOUSE_1}, {" mouse2" , MOUSE_2}, {" mouse3" , MOUSE_3}, {" mouse4" , MOUSE_4},
88+ {" mouse5" , MOUSE_5}, {" mouse6" , MOUSE_6}, {" mouse7" , MOUSE_7}, {" mouse8" , MOUSE_8},
8989 {NULL , SDL_SCANCODE_UNKNOWN}};
9090
9191void initialize_bindings ()
@@ -195,7 +195,7 @@ _keyboard* dik_to_ptr(SDL_Scancode _dik, bool bSafe)
195195 return NULL ;
196196}
197197
198- SDL_Scancode keyname_to_dik (pcstr _name)
198+ int keyname_to_dik (pcstr _name)
199199{
200200 _keyboard* _kb = keyname_to_ptr (_name);
201201 return _kb->dik ;
@@ -234,7 +234,7 @@ bool is_binded(EGameActions _action_id, SDL_Scancode _dik)
234234 return false ;
235235}
236236
237- SDL_Scancode get_action_dik (EGameActions _action_id, int idx)
237+ int get_action_dik (EGameActions _action_id, int idx)
238238{
239239 _binding* pbinding = &g_key_bindings[_action_id];
240240
@@ -478,7 +478,7 @@ class CCC_BindConsoleCmd : public IConsole_Command
478478 _GetItems (args, 0 , cnt - 1 , console_command, ' ' );
479479 _GetItem (args, cnt - 1 , key, ' ' );
480480
481- SDL_Scancode dik = keyname_to_dik (key);
481+ int dik = keyname_to_dik (key);
482482 bindConsoleCmds.bind (dik, console_command);
483483 }
484484
@@ -491,17 +491,17 @@ class CCC_UnBindConsoleCmd : public IConsole_Command
491491 CCC_UnBindConsoleCmd (LPCSTR N) : IConsole_Command(N) { bEmptyArgsHandled = FALSE ; };
492492 virtual void Execute (LPCSTR args)
493493 {
494- SDL_Scancode _dik = keyname_to_dik (args);
494+ int _dik = keyname_to_dik (args);
495495 bindConsoleCmds.unbind (_dik);
496496 }
497497};
498498
499- void ConsoleBindCmds::bind (SDL_Scancode dik, LPCSTR N)
499+ void ConsoleBindCmds::bind (int dik, LPCSTR N)
500500{
501501 _conCmd& c = m_bindConsoleCmds[dik];
502502 c.cmd = N;
503503}
504- void ConsoleBindCmds::unbind (SDL_Scancode dik)
504+ void ConsoleBindCmds::unbind (int dik)
505505{
506506 xr_map<int , _conCmd>::iterator it = m_bindConsoleCmds.find (dik);
507507 if (it == m_bindConsoleCmds.end ())
@@ -511,7 +511,7 @@ void ConsoleBindCmds::unbind(SDL_Scancode dik)
511511}
512512
513513void ConsoleBindCmds::clear () { m_bindConsoleCmds.clear (); }
514- bool ConsoleBindCmds::execute (SDL_Scancode dik)
514+ bool ConsoleBindCmds::execute (int dik)
515515{
516516 xr_map<int , _conCmd>::iterator it = m_bindConsoleCmds.find (dik);
517517 if (it == m_bindConsoleCmds.end ())
0 commit comments