labstreaminglayer / App-Input

Input device (mouse/keyboard) connector app for Windows
MIT License
12 stars 1 forks source link

Cross platform (Java) #1

Open cboulay opened 4 years ago

cboulay commented 4 years ago

I came across a java application that all keyboard and mouse events to csv: https://github.com/vmonaco/biologger

It is based on a java library called jnativehook (GPL): https://github.com/kwhat/jnativehook

It seems like the former could be forked and modified without too much difficulty (for a java developer) to implement a LSLConsumer.

tstenner commented 4 years ago

There's also the psychtoolbox with well-tested cross platform input support and reliable time-stamping. Afaik the python bindings are on pypi, but I'm not entirely sure

cboulay commented 4 years ago

Will the psych toolbox still capture kb and mouse events even if the process window does not have focus?

tstenner commented 4 years ago

Last time I checked it doesn't even require a window at all.