Mouse plugin

Questions and comments specific to a particular plugin should go here.
Post Reply
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Mouse plugin

Post by Fiasco » Mon Aug 05, 2019 5:41 pm

I am sending my iphones pitch and yaw to eventghost to attempt to use it as a mouse control on my HTPC.

UDP broadcasts come as "yaw", "value" and "pitch", "value"

Is it possible to set the mouse position on screen with variable data coming from events with the mouse plugin?

It's been a loooong time since I have done anything new with eventghost. I was actually stunned to see the Onkyo serial plugin as part of the distribution that I wrote so many years ago.

User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: Mouse plugin

Post by Fiasco » Mon Aug 05, 2019 6:43 pm

I'm trying to do a python command with the payload
eg.plugins.Mouse.MoveAbsolute(eg.event.payload)

How do I need to format the eg.event.payload line for the mouse plugin?

User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: Mouse plugin

Post by Fiasco » Tue Aug 06, 2019 9:31 pm

I was able to figure it out.

eg.plugins.Mouse.MouseAbsolute(int(eg.event.payload[0]),int(eg.event.payload[1]))

I created a "magic" remote as part of my home CommandFusion remote on our iphones. It uses the gyro data from the iphone to figure out where your iphone is pointed and moves the mouse cursor around on the TV screen with mouse click as well as scroll wheel dragging on the right side of the screen.

User avatar
kgschlosser
Site Admin
Posts: 4811
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Mouse plugin

Post by kgschlosser » Tue Aug 06, 2019 9:55 pm

OK that just sounds pretty bad ass i must say..

I will guarantee there is no other HA software that would allow that to be possible.

Now here is the real cool thing about something like that..
A lot of TV's come with remote controls that either have a joy or use a gyroscope. Samsung TV's are one of them. I know how to control the mouse movements on Samsung TV's. So you can do the same thing as what you did except it would move the native mouse for the TV.
If you like the work I have been doing then feel free to Image

User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: Mouse plugin

Post by Fiasco » Tue Aug 06, 2019 10:37 pm

Commandfusion demo allows a single page without paying. If there’s interest I’ll break the mouse control out of my full remote and make a demo zip file available

Post Reply