diff options
author | Mike Erwin <significant.bit@gmail.com> | 2012-05-08 09:04:29 +0400 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2012-05-08 09:04:29 +0400 |
commit | 243304a6231cf86da9d21097c6dd3bfe05acf1f4 (patch) | |
tree | 365206e1d6b7e56fbf368007cc9c158a074b7d2e /intern | |
parent | 5797edfcf23060fa2b506292e0af970276554c0b (diff) |
ndof: restored support for older serial port 3D mice on Linux (R45951 broke it, oops)
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_NDOFManagerX11.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_NDOFManagerX11.cpp b/intern/ghost/intern/GHOST_NDOFManagerX11.cpp index 1e78cafd4f6..565324ae211 100644 --- a/intern/ghost/intern/GHOST_NDOFManagerX11.cpp +++ b/intern/ghost/intern/GHOST_NDOFManagerX11.cpp @@ -37,6 +37,8 @@ GHOST_NDOFManagerX11::GHOST_NDOFManagerX11(GHOST_System& sys) setDeadZone(0.1f); /* how to calibrate on Linux? throw away slight motion! */ if (spnav_open() != -1) { + m_available = true; + /* determine exactly which device (if any) is plugged in */ #define MAX_LINE_LENGTH 100 @@ -49,7 +51,6 @@ GHOST_NDOFManagerX11::GHOST_NDOFManagerX11(GHOST_System& sys) unsigned short vendor_id = 0, product_id = 0; if (sscanf(line, "Bus %*d Device %*d: ID %hx:%hx", &vendor_id, &product_id) == 2) if (setDevice(vendor_id, product_id)) { - m_available = true; break; /* stop looking once the first 3D mouse is found */ } } |