Skip to content

Commit bc0e271

Browse files
author
Francisco Lopes
committed
Show non recognized devices in sample
1 parent 177efe7 commit bc0e271

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

samples/identify/identify.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ int main()
3333

3434
if(keystroke.code == SCANCODE_ESC) break;
3535
}
36-
37-
if(interception_is_mouse(device))
36+
else if(interception_is_mouse(device))
3837
{
3938
cout << "INTERCEPTION_MOUSE(" << device - INTERCEPTION_MOUSE(0) << ")" << endl;
4039
}
40+
else
41+
{
42+
cout << "UNRECOGNIZED(" << device << ")" << endl;
43+
}
4144

4245
interception_send(context, device, &stroke, 1);
4346
}

0 commit comments

Comments
 (0)