Commit Graph

12 Commits

Author SHA1 Message Date
pixl f51ba0f681 Remove unused assert warnings when building Release 2020-07-15 13:27:21 -04:00
pixl 89b9829b84 Fix bug where GetPairingInfo would be offset by -1. 2020-07-14 16:20:06 -04:00
pixl 825967b140 TODO cleanup: Add PowerSwitchLocation enum 2020-07-13 22:42:23 -04:00
pixl 4ce76f5927 Listen for events on receiver device on timeout
Previously, if a receiver device didn't respond during the initial scan,
logid would not recognize it until it sent a wakeup/connect event.

This makes it so if the device times out, logid will listen for the next
event from the device and try detecting it. (e.g. shaking the mouse will
make it become detected)
2020-07-12 16:16:50 -04:00
pixl de8e453bd3 Fix deadlock issue
RawDevice would deadlock in some situations because I/O occured while
the listener was turning on. This also seems to have fixed logid
sometimes not detecting devices on receivers.
2020-07-12 16:16:24 -04:00
pixl 4ba9248038 Use safe thread class instead of std::thread 2020-07-12 16:15:48 -04:00
pixl 1d001237ba Monitor wake up/sleep events with Receiver 2020-07-12 16:15:48 -04:00
pixl 22455af615 Add GPL copyright notice in all C++ source files 2020-07-12 16:15:32 -04:00
pixl dd75df8c18 Use consistent code style
Only files that are currently used in logid are changed.
2020-07-12 16:14:25 -04:00
pixl e40da5f0c0 Implement receiver HID++ connect/disconnect events
Many changes were made here but that was the biggest one.

There's currently a bug where std::system_error: Broken pipe is thrown
after launching the daemon with a receiver connector.

A workaround for this bug is to simply shake the mouse while starting
the daemon. I will investigate this soon.
2020-07-12 16:14:24 -04:00
pixl c04408c2dd Implement logid::backend::dj::ReceiverMonitor 2020-07-12 16:14:24 -04:00
pixl b41649b0de Implement dj::Receiver class
Again, many things were done here.
2020-07-12 16:13:54 -04:00