Skip to content

Commit

Permalink
[input] Add some logging for input device
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Dec 2, 2015
1 parent 2817b61 commit 54c1f25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/input/linux/LinuxInputDevices.cpp
Expand Up @@ -1112,6 +1112,9 @@ void CLinuxInputDevice::GetInfo(int fd)
//printf("type: %d\n", m_deviceType);
//printf("caps: %d\n", m_deviceCaps);
//printf("pref: %d\n", m_devicePreferredId);

CLog::Log(LOGNOTICE, "%s: keys:%d ext:%d but:%d rel:%d abs:%d m_deviceType:%x bits:%d%d%d%d%d%d", m_deviceName, num_keys, num_ext_keys, num_buttons, num_rels, num_abs, m_deviceType,
(int)test_bit( EV_KEY, evbit ), (int)test_bit( EV_REL, evbit ), (int)test_bit( EV_ABS, evbit ), (int)test_bit( BTN_TOUCH, keybit ), (int)test_bit( BTN_TOOL_FINGER, keybit ), (int)test_bit(ABS_MT_SLOT, absbit));
}

const std::string& CLinuxInputDevice::GetFileName()
Expand Down

0 comments on commit 54c1f25

Please sign in to comment.