You are not logged in.

#1 2015-04-13 09:41:09

tracuboTL
Member
Registered: 2010-10-04
Posts: 55

How to map a mouse click on a particular area to a key

Hi there!
I'm trying to play android games on Linux via chromium. I can run games but then they are mouse driven. I like platform games such this one https://play.google.com/store/apps/deta … huey&hl=en but I can't play it on my phone because I'm not comfy with touch screen controls.

So, my idea is to run it on Linux, and map keys to perform a click on the right area of the screen to make the dragon move/jump and so on.

is there a tool that say "when key A is pressed a mouse click on the screen on area (x,y) is performed"

thanks
Nico

Offline

#2 2015-04-13 11:20:59

Psirus
Member
Registered: 2012-01-29
Posts: 45

Re: How to map a mouse click on a particular area to a key

xdotool mousemove 300 300 click 1

will move the mouse to the coordinates (300, 300) and do a left click. How you map this to a key is your choice.

Offline

Board footer

Powered by FluxBB