Some more libusb-1.0 related cleanup

This commit is contained in:
Ingo Ruhnke 2011-01-14 13:08:04 +01:00
parent 869e1c87b2
commit d9e1741f84
5 changed files with 18 additions and 12 deletions

6
NEWS
View file

@ -1,3 +1,9 @@
xboxdrv 0.6.5 - (??/Jan/2011)
=============================
* switched to libusb-1.0
xboxdrv 0.6.4 - (13/Jan/2011)
=============================

10
README
View file

@ -31,7 +31,7 @@ The development version can be optained via:
Required libraries and tools:
* g++ - GNU C++ Compiler
* libusb
* libusb-1.0
* boost
* scons
* uinput (userspace input kernel module)
@ -43,14 +43,14 @@ Once everything installed, you can compile by typing:
$ scons
On Ubuntu 10.04 you can install all the required libraries via:
On Ubuntu 10.10 you can install all the required libraries via:
$ sudo apt-get install \
g++ \
libboost1.40-dev \
libboost-thread1.40-dev \
libboost1.42-dev \
libboost-thread1.42-dev \
scons \
libusb-dev \
libusb-1.0-0-dev \
git-core \
libx11-dev \
x11proto-core-dev \

View file

@ -180,6 +180,11 @@ Chatpad::set_led(unsigned int led, bool state)
{
send_ctrl(0x41, 0x00, 0x0000, 0x0002, NULL, 0);
}
else if (led == CHATPAD_LED_BACKLIGHT)
{
// backlight goes on automatically, so we only provide a switch to disable it
send_ctrl(0x41, 0x00, 0x0004, 0x0002, NULL, 0);
}
}
}
@ -256,11 +261,6 @@ Chatpad::process(const ChatpadKeyMsg& msg)
{
if (m_state[i])
{
if (i == CHATPAD_KEY_1)
{
send_ctrl(0x41, 0x00, 0x0004, 0x0002, NULL, 0);
}
if (i == CHATPAD_MOD_PEOPLE)
{
set_led(CHATPAD_LED_PEOPLE, !get_led(CHATPAD_LED_PEOPLE));

View file

@ -139,7 +139,7 @@ Xbox360Controller::find_endpoints()
throw std::runtime_error("-- failure --"); // FIXME
}
bool debug_print = true;
bool debug_print = false;
// FIXME: no need to search all interfaces, could just check the one we acutally use
for(const libusb_interface* interface = config->interface;

View file

@ -69,7 +69,7 @@ XboxController::find_endpoints()
throw std::runtime_error("-- failure --"); // FIXME
}
bool debug_print = true;
bool debug_print = false;
// FIXME: no need to search all interfaces, could just check the one we acutally use
for(const libusb_interface* interface = config->interface;