Page 1 of 1
Catch mouse or keyboard events in LUA addons
Posted: 25 Jun 2014 04:44
by Josenzo
Hello! Is possible to catch mouse or keyboard events in a VLC Lua addons?
I tried some ways and looking for some solutions but doesn't work.
I've found this example in other addons
https://trac.videolan.org/vlc/ticket/8097 but does not work in my VLC 2.1 (Mac). What is the correct way to catch this events, the documentation do not say nothing about that.
Thank you.
Re: Catch mouse or keyboard events in LUA addons
Posted: 25 Jun 2014 20:20
by Rémi Denis-Courmont
No.
Re: Catch mouse or keyboard events in LUA addons
Posted: 26 Jun 2014 04:03
by Josenzo
The only way is programming the extension in C?
Re: Catch mouse or keyboard events in LUA addons
Posted: 26 Jun 2014 17:10
by Rémi Denis-Courmont
In C or C++ (or Objective on MacOS).
Re: Catch mouse or keyboard events in LUA addons
Posted: 03 Jul 2014 13:58
by Josenzo
Just the last question Rémi. If i write this plugin i have to recompile the VLC player? And the users want to use it have to uninstall the original version and install my VLC version?
Or the plugins in C/Objc works more or less like LUA in terms of install?
Re: Catch mouse or keyboard events in LUA addons
Posted: 03 Jul 2014 23:11
by Rémi Denis-Courmont
You don't strictly have to recompile VLC, but you have to compile the plugin for each combination of VLC version, target platform and target operating system.
Re: Catch mouse or keyboard events in LUA addons
Posted: 04 Jul 2014 10:40
by Josenzo
When you say each VLC version you mean all the subversions aswell?
2.1.4, 2.1.3, 2.1.2 ...
or only
2.x.x, 1.x.x, 0.x.x
or
2.1.x, 2.0.x, 1.1.x
The documentation is very poor any ideas where i can start with?
Thank you very much for your help.
Re: Catch mouse or keyboard events in LUA addons
Posted: 04 Jul 2014 20:45
by Rémi Denis-Courmont
Usually, 2.0.x, 2.1.x, but no promises.