Fixed some compiler warnings

This commit is contained in:
Ingo Ruhnke 2011-01-09 19:05:15 +01:00
parent 26b489b312
commit 1346390a4b
6 changed files with 4 additions and 22 deletions

4
TODO
View file

@ -27,10 +27,6 @@ $ dput my-ppa xboxdrv_0.6.3_source.changes
Stuff to do before 0.6.4 release:
=================================
* reorder man page to match --help output
* write documentation for chatpad, headset options
* bug: when shifting the last axis state sticks even when the key was released
Stuff to do before 0.6.x release:

View file

@ -302,7 +302,7 @@ Chatpad::send_init()
// make chatpad ready
ret = usb_control_msg(m_handle, 0xc0, 0xa1, 0x0000, 0xe416, buf, 2, 0); // (read 2 bytes, will return a mode)
if (m_debug) std::cout << "[chatpad] ret: " << ret << " " << (int)buf[0] << " " << (int)buf[1]<< std::endl;
if (m_debug) std::cout << "[chatpad] ret: " << ret << " " << static_cast<int>(buf[0]) << " " << static_cast<int>(buf[1])<< std::endl;
if (buf[1] & 2)
{
@ -330,7 +330,7 @@ Chatpad::send_init()
if (m_debug) std::cout << "[chatpad] ret: " << ret << std::endl;
ret = usb_control_msg(m_handle, 0xc0, 0xa1, 0x0000, 0xe416, buf, 2, 0); // (read 2 bytes, this should return the NEW mode)
if (m_debug) std::cout << "[chatpad] ret: " << ret << " " << (int)buf[0] << " " << (int)buf[1]<< std::endl;
if (m_debug) std::cout << "[chatpad] ret: " << ret << " " << static_cast<int>(buf[0]) << " " << static_cast<int>(buf[1]) << std::endl;
if (!(buf[1] & 2))
{

View file

@ -36,6 +36,7 @@ typedef boost::shared_ptr<Modifier> ModifierPtr;
class Modifier
{
public:
virtual ~Modifier() {}
virtual void update(int msec_delta, XboxGenericMsg& msg) =0;
};

View file

@ -282,16 +282,4 @@ Xbox360Controller::read(XboxGenericMsg& msg, bool verbose, int timeout)
return false;
}
void
Xbox360Controller::headset_play(const std::string& filename)
{
// std::ifstream in(filename.c_str(), std::ios::binary);
}
void
Xbox360Controller::headset_write(const std::string& filename)
{
// std::ofstream out(filename.c_str(), std::ios::binary);
}
/* EOF */

View file

@ -56,9 +56,6 @@ public:
void set_rumble(uint8_t left, uint8_t right);
void set_led(uint8_t status);
bool read(XboxGenericMsg& msg, bool verbose, int timeout);
void headset_play(const std::string& filename);
void headset_write(const std::string& filename);
private:
Xbox360Controller (const Xbox360Controller&);

View file

@ -1,6 +1,6 @@
#!/bin/sh
xboxdrv \
./xboxdrv \
--evdev /dev/input/by-id/usb-Microsoft_SideWinder_Dual_Strike_USB_version_1.0-event-joystick \
--evdev-absmap ABS_HAT0X=X1,ABS_HAT0Y=y1 \
--evdev-absmap ABS_X=x2,ABS_Y=y2 \