Ye, this is good way. I tried it, and when I press space i got:
Код:
[21:24:31] newkeys: 8
[21:24:31] newkeys: 0
First line show space ID - 8, but why also that second line appeared? When I press other keys, that line with 0 also appears. How to do, that printf will show only first line?