Lepik Events
An event based, Global Keyboard and Mouse listener.
Lepik Events is only part from LepikJS. Definitely try it out!
Visit LepikJS's website.
Installing
npm install lepikevents
Coding
const lepikEvents = require('lepikevents');
lepikEvents.events.on('keyPress', (data) => {
console.log(data);
});
lepikEvents.events.on('keyRelease', (data) => {
console.log(data);
});
lepikEvents.events.on('mouseClick', (data) => {
console.log(data);
});
lepikEvents.events.on('mouseDoubleClick', (data) => {
console.log(data);
});
All events
Curently there are 3 events, mouseClick, mouseDoubleClick and keyPress.
I will try to implement more in future.
Requirements
Lepik Events uses Python keyboard and Python mouse which runs on Python.
If your are on Windows, then you don't even have to have it installed, cause thanks to Pyinstaller, the code is compiled into executable.
If you are not using windows, you need to have atleast Python3 installed.
It's better to have atleast node13 but not required.
License
The code is licensed under the MIT license (http://opensource.org/licenses/MIT). See LICENSE file.