Catch mouse or keyboard events in LUA addons

This forum is about all development around libVLC.
Josenzo
New Cone
New Cone
Posts: 4
Joined: 25 Jun 2014 04:40

Catch mouse or keyboard events in LUA addons

Postby Josenzo » 25 Jun 2014 04:44

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Catch mouse or keyboard events in LUA addons

Postby Rémi Denis-Courmont » 25 Jun 2014 20:20

No.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Josenzo
New Cone
New Cone
Posts: 4
Joined: 25 Jun 2014 04:40

Re: Catch mouse or keyboard events in LUA addons

Postby Josenzo » 26 Jun 2014 04:03

The only way is programming the extension in C?

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Catch mouse or keyboard events in LUA addons

Postby Rémi Denis-Courmont » 26 Jun 2014 17:10

In C or C++ (or Objective on MacOS).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Josenzo
New Cone
New Cone
Posts: 4
Joined: 25 Jun 2014 04:40

Re: Catch mouse or keyboard events in LUA addons

Postby Josenzo » 03 Jul 2014 13:58

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Catch mouse or keyboard events in LUA addons

Postby Rémi Denis-Courmont » 03 Jul 2014 23:11

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Josenzo
New Cone
New Cone
Posts: 4
Joined: 25 Jun 2014 04:40

Re: Catch mouse or keyboard events in LUA addons

Postby Josenzo » 04 Jul 2014 10:40

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Catch mouse or keyboard events in LUA addons

Postby Rémi Denis-Courmont » 04 Jul 2014 20:45

Usually, 2.0.x, 2.1.x, but no promises.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 39 guests