adds an important debugging message

git-svn-id: svn://svn.code.sf.net/p/qjoypad/code/trunk@115 c05e91a0-76c8-4ec0-b377-ef19ce7cc080
This commit is contained in:
John Toman
2009-09-02 22:47:34 +00:00
committed by virtuoussin13
parent 0b9132b0f0
commit 85dfc3ee90

View File

@ -340,6 +340,7 @@ void LayoutManager::updateJoyDevs() {
//for every joystick device in the directory listing...
//(note, with devfs, only available devices are listed)
for (QStringList::Iterator it = devices.begin(); it != devices.end(); ++it) {
debug_mesg("found a device file, %s\n", qPrintable(devdir + "/" + (*it)));
//try opening the device.
joydev = open( qPrintable(devdir + "/" + (*it)), O_RDONLY | O_NONBLOCK);
//if it worked, then we have a live joystick! Make sure it's properly