Light LEDs when using daemon
This commit is contained in:
parent
66c39c97d6
commit
d6f232c548
1 changed files with 4 additions and 1 deletions
|
@ -31,6 +31,7 @@
|
|||
#include "usb_helper.hpp"
|
||||
#include "xbox_controller_factory.hpp"
|
||||
#include "xboxdrv_thread.hpp"
|
||||
#include "xbox_generic_controller.hpp"
|
||||
|
||||
extern bool global_exit_xboxdrv;
|
||||
|
||||
|
@ -138,7 +139,7 @@ XboxdrvDaemon::cleanup_threads()
|
|||
void
|
||||
XboxdrvDaemon::process_match(const Options& opts, struct udev_device* device)
|
||||
{
|
||||
if (true)
|
||||
if (false)
|
||||
{
|
||||
print_info(device);
|
||||
}
|
||||
|
@ -478,6 +479,8 @@ XboxdrvDaemon::launch_xboxdrv(const XPadDevice& dev_type, const Options& opts,
|
|||
{
|
||||
std::auto_ptr<XboxGenericController> controller = XboxControllerFactory::create(dev_type, dev, opts);
|
||||
|
||||
controller->set_led(2 + (slot.id % 4));
|
||||
|
||||
std::auto_ptr<MessageProcessor> message_proc;
|
||||
if (m_uinput.get())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue