adds a new compile time option for debugging output, brings the timeout for reading junk data back into line between joypad.cpp and layout.cpp, and adds in read exception handling when setupjoydevs is called (previously only set up in the joypad constructor)
git-svn-id: svn://svn.code.sf.net/p/qjoypad/code/trunk@101 c05e91a0-76c8-4ec0-b377-ef19ce7cc080
This commit is contained in:
committed by
virtuoussin13
parent
8363313fd2
commit
30ed817389
@ -314,7 +314,9 @@ void LayoutManager::fillPopup() {
|
||||
}
|
||||
|
||||
void LayoutManager::updateJoyDevs() {
|
||||
DEBUG("updating joydevs\n");
|
||||
QString devdir = DEVDIR;
|
||||
|
||||
//reset all joydevs to sentinal value (-1)
|
||||
do {
|
||||
QHashIterator<int, JoyPad*> it( joypads );
|
||||
@ -375,4 +377,5 @@ void LayoutManager::updateJoyDevs() {
|
||||
//the actual update process is handled by main.cpp, we just need to signal
|
||||
//ourselves to do it.
|
||||
//raise(SIGUSR1);
|
||||
DEBUG("done updating joydevs\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user