chetbox / android-mouse-cursor Goto Github PK
View Code? Open in Web Editor NEWUsing an AccessibilityService to simulate a mouse in Android (without root)
License: MIT License
Using an AccessibilityService to simulate a mouse in Android (without root)
License: MIT License
A bit of a niche situation, but I'm trying to run the web version of FTL on my phone and it requires an external mouse in order to play the game properly. I have seen other projects that use accessibility options like Quick Cursor, but they appear to use touch commands as opposed to an actual cursor, so they aren't that helpful for my purposes.
My question is if the app could be self contained in a similar way to Quick Cursor or Reachability, but manipulate a proper cursor so that it will interact with the game?
I want to use this project in my music game likes Project Sega or other,the issu is the game hasn a available element id,I want to click a coordinate or a zone ,Can this be achieved by using AccessibilityService? Thx!!
Mentioned on http://stackoverflow.com/questions/4386449/send-touch-event-from-adb-to-a-device
is
adb shell input tap x y
could we not use this method?
Hi, i found your code while i'm dinging online, really helpful.
I would like to change the way I input the command so instead of using python script, I would like to use the Gyroscope to move that cursor, but each time I try to inject the code with direct command it crash !!
` public void onSensorEvent (SensorEvent event) {
cursorLayout.x = cursorLayout.x - (int) event.values[0];
cursorLayout.y = cursorLayout.y + (int) event.values[1];
if (cursorLayout.x <= 20) {
cursorLayout.x = 20;
}
if (cursorLayout.x >= 10 - 20) {
cursorLayout.x = 10 - 20;
}
if (cursorLayout.y<= 20) {
cursorLayout.y = 20;
}
if (cursorLayout.y >= 10 - 20) {
cursorLayout.y = 10 - 20;
}
windowManager.updateViewLayout(cursorView, cursorLayout);
}`
thanks in advance
I am trying to use this code but am facing issue in click event.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.