Skip to content

Commit be8d165

Browse files
committed
Add XInput device logging.
1 parent 7cd155b commit be8d165

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dhc/src/input/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,12 +357,14 @@ impl RawInputManager {
357357

358358
let mut events = VecDeque::new();
359359
for id in killed {
360+
info!("XInputDevice({:?}) left", id);
360361
events.push_back(RawInputEvent::DeviceRemoved(DeviceId::XInput(id)));
361362
self.xinput_devices.remove(&id);
362363
}
363364

364365
let default_inputs = DeviceInputs::default();
365366
for id in new {
367+
info!("XInputDevice({:?}) arrived", id);
366368
let (write, read) = triple_buffer::TripleBuffer::new(default_inputs).split();
367369
let xinput_device = XInputDeviceState { buffer: write };
368370
self.xinput_devices.insert(id, xinput_device);

0 commit comments

Comments
 (0)