detect changing USB joysticks and remap on the fly

This commit is contained in:
Chris Danford
2005-12-18 07:13:13 +00:00
parent ff7bbfe524
commit efe3984ad5
6 changed files with 72 additions and 30 deletions
@@ -8,21 +8,6 @@
#include <fcntl.h>
#include <dirent.h>
template<class T>
bool VectorsAreEqual( const T &a, const T &b )
{
if( a.size() != b.size() )
return false;
for( unsigned i=0; i<a.size(); i++ )
{
if( a[i] != b[i] )
return false;
}
return true;
}
bool MemoryCardDriverThreaded_Linux::TestWrite( UsbStorageDevice* pDevice )
{
if( access(pDevice->sOsMountDir, W_OK) == -1 )