onepad: Remove use of "using namespace std"

"using namespace std" was causing ambiguity issues and compile errors on
FreeBSD. Remove it.
This commit is contained in:
Jonathan Li 2017-05-23 01:02:04 +00:00
parent 802f1029e9
commit e8f35f0bab
3 changed files with 2 additions and 3 deletions

View File

@ -31,7 +31,7 @@ __forceinline int get_keyboard_key(int pad, int keysym)
{
// You must use find instead of []
// [] will create an element if the key does not exist and return 0
map<u32, u32>::iterator it = g_conf.keysym_map[pad].find(keysym);
std::map<u32, u32>::iterator it = g_conf.keysym_map[pad].find(keysym);
if (it != g_conf.keysym_map[pad].end())
return it->second;
else

View File

@ -50,7 +50,7 @@ public:
};
u32 log;
map<u32, u32> keysym_map[GAMEPAD_NUMBER];
std::map<u32, u32> keysym_map[GAMEPAD_NUMBER];
std::array<size_t, GAMEPAD_NUMBER> unique_id;
std::vector<std::string> sdl2_mapping;

View File

@ -46,7 +46,6 @@
#include <memory>
#include <mutex>
#include <queue>
using namespace std;
#define PADdefs
#include "PS2Edefs.h"