joysticks should be opend as readonly

This commit is contained in:
zerofrog
2007-12-14 13:32:06 +00:00
parent c301a23436
commit 1097762492
2 changed files with 5 additions and 2 deletions

View File

@@ -680,7 +680,7 @@ bool JoystickInfo::Init(const char* pdevid, int id, bool bStartThread)
assert(pdevid != NULL );
Destroy();
if ((js_fd = open(pdevid, O_RDWR)) < 0) {
if ((js_fd = open(pdevid, O_RDONLY)) < 0) {
js_fd = -1;
return false;
}

View File

@@ -9,12 +9,15 @@ echo ----------------
if [ $# -gt 0 ] && [ $1 = "all" ]
then
#if possible
make distclean
aclocal
automake -a
autoconf
chmod +x configure
./configure --prefix=${PCSX2PLUGINS}
make clean
make distclean
make install
else