Hi all,
I'm trying to control the mouse cursor using /dev/input/event*.
Right now I'm experimenting this by capturing the trackpad events using "getevent" terminal command and then mimic them using a snippet of c code.
The problem that I'm having right now is that writing to /dev/input/event* doesn't actually show up and move the cursor visually. The cursor only moves if I put the finger on the trackpad while writing to /dev/input/event*.
My goal is to programmatically control the mouse cursor. Just in case you guys are curious, I want to develop a TF101 port of Synergy. I really want to have my transformer pad besides my laptop and control it with my laptop's mouse and keyboard.
Any idea?
Thank you
BlackSoil said:
Hi all,
I'm trying to control the mouse cursor using /dev/input/event*.
Right now I'm experimenting this by capturing the trackpad events using "getevent" terminal command and then mimic them using a snippet of c code.
The problem that I'm having right now is that writing to /dev/input/event* doesn't actually show up and move the cursor visually. The cursor only moves if I put the finger on the trackpad while writing to /dev/input/event*.
My goal is to programmatically control the mouse cursor. Just in case you guys are curious, I want to develop a TF101 port of Synergy. I really want to have my transformer pad besides my laptop and control it with my laptop's mouse and keyboard.
Any idea?
Thank you
Click to expand...
Click to collapse
Id love to see something like this, I assume you have seen this: (http://sourceforge.net/projects/synergyandroid/)
JoinTheRealms said:
Id love to see something like this, I assume you have seen this: (http://sourceforge.net/projects/synergyandroid/)
Click to expand...
Click to collapse
Yep I've taken a look at it. It's really helpful. And if I can figure out how to move the cursor, I'll probably base most the work out of that project.
Never mind this thread. I think I got this figured out.
Let me know if anybody is interested to know how. It's still just writing to /dev/input/event*. It's just I made a little mistake on what to send before
Interested
BlackSoil said:
Never mind this thread. I think I got this figured out.
Let me know if anybody is interested to know how. It's still just writing to /dev/input/event*. It's just I made a little mistake on what to send before
Click to expand...
Click to collapse
Hi
I'm definitely interested in this project. I've been looking for something like this.
The current synergy project doesn't work the way I expected, it seems to cycle through the controls on the screen rather than move the cursor
I ended up buying a different one called PC Loves Droid, which works quite well, but gets stuck a bit too often to be useful
So if you've made progress with this project, I'd love to see what you've done.
is the mouse plugin?
BlackSoil said:
Hi all,
I'm trying to control the mouse cursor using /dev/input/event*.
Right now I'm experimenting this by capturing the trackpad events using "getevent" terminal command and then mimic them using a snippet of c code.
The problem that I'm having right now is that writing to /dev/input/event* doesn't actually show up and move the cursor visually. The cursor only moves if I put the finger on the trackpad while writing to /dev/input/event*.
My goal is to programmatically control the mouse cursor. Just in case you guys are curious, I want to develop a TF101 port of Synergy. I really want to have my transformer pad besides my laptop and control it with my laptop's mouse and keyboard.
Any idea?
Thank you
Click to expand...
Click to collapse
hi there, i am also interested in this area,
just wondering did you plugin the mouse before you control the mouse cursor, or you can do without plugin the mouse, seems like a driver will be install when you plugin the mouse to Android, event* will be added before you can control the mouse,
also can you share the format of how the mouse is being move,
all i am getting from getevent is
0002 0000 00000002
0000 0000 00000000
0002 0000 00000001
0002 0001 ffffffff
i couldn't find any revelent from those data to the X, Y point of the cursor,
any references will be appreciated
BlackSoil said:
I really want to have my transformer pad besides my laptop and control it with my laptop's mouse and keyboard.
Click to expand...
Click to collapse
Is your app released or available yet?
because I can't find it..
In any case, you can try LANmote to control your Android device using your comnputer Keyboard and Mouse.
https://play.google.com/store/search?q=lanmote
Let me know what you think or how we can improve it...
Related
Can not seem to get the mouse over function to work on any links in the browser.
would be nice if this worked, makes the mouse touch pad more useful.
I've investigated the same from dev perspective (i.e. what it would take to have mouse hover work in my app). For now this seems to be undoable, because mouse events are only reported (as if they were touch events) when mouse button is down.
However, there is a new API for mouse hover, scroll etc in Android 3.1 - with this it should be possible to implement everything. Whether stock apps would use it or not is an open question, but I would expect that Browser of all things would do so, and hopefully Adobe adds hover support to Flash as well.
Actually there's a very simple way to do a mouse hover. Just put both fingers on the touchpad and it will act as a hover.
At least I think this works...
doronster195 said:
Actually there's a very simple way to do a mouse hover. Just put both fingers on the touchpad and it will act as a hover.
At least I think this works...
Click to expand...
Click to collapse
This does not work. Putting both fingers on the touchpad switches to page scrolling mode.
Hey Guys, I have been trying to find the perfect tablet for a while now and I thought the note might be it but something I tried at best buy yesterday did not work and I was hoping someone who has the tablet might try it out for me. My specific use for the tablet would be to take it on sales calls and use my very primitive excel order form. All I need it to do is be able to put a 1 or an x in a cell. I tried this with polaris with the pen and it would not write in the cell. Was it a setting I didn't see or does it just not work that way. I've used the transformer prime for work with this order form with the on screen keyboard but I just thought I could be faster writing with the pen. The other advantage is that I could see more of the screen If I didn't have the keyboard pop up.
Thanks for checking this out for me If you can....
Have you got an example of the sheet or are you just asking if you can place an X in a cell?
Happy to test for you if you provide a bit more detail or a sample sheet for specific testing.
HasC said:
Have you got an example of the sheet or are you just asking if you can place an X in a cell?
Happy to test for you if you provide a bit more detail or a sample sheet for specific testing.
Click to expand...
Click to collapse
Thanks for the quick reply. Yes I am just asking If you go into polaris open up a new spreadsheet and see if you could write with the pen in the cell. For my purposes all I need to put in there is either a one or an x. Thanks again...
Just checked, all you need to do is double tap using the s pen in the cell you want to edit and the keyboard pops up, you then enter your 1 or X using the keyboard.
Edit: If you want to enter the X using handwriting recognition, its the same principal but you just need to have the keyboard in handwriting mode, you set this by keeping your finger on the setting button to the left of the space bar and slide it to the T icon that has a pen next to it. Once set, you can use the pen using your handwriting by writing in the panel that pops up at the bottom. The recognition is awesome.
HasC said:
Just checked, all you need to do is double tap using the s pen in the cell you want to edit and the keyboard pops up, you then enter your 1 or X using the keyboard.
Edit: If you want to enter the X using handwriting recognition, its the same principal but you just need to have the keyboard in handwriting mode, you set this by keeping your finger on the setting button to the left of the space bar and slide it to the T icon that has a pen next to it. Once set, you can use the pen using your handwriting by writing in the panel that pops up at the bottom. The recognition is awesome.
Click to expand...
Click to collapse
Thanks so much for this, obviously never using the pen before wouldn't know how to get into handwriting mode. One last question if you don't mind, I have had better luck with documents to go than polaris in the past, will the pen work with any app like you're saying or is it just for the built in ones.
The handwriting input panel will work with any App that allows text input as it is brought up as a keyboard option and you can switch between keyboard, handwriting input or voice input using the method described earlier.
HasC said:
The handwriting input panel will work with any App that allows text input as it is brought up as a keyboard option and you can switch between keyboard, handwriting input or voice input using the method described earlier.
Click to expand...
Click to collapse
That is phenomenal, thanks so much. Who knew I would get all my answers before 7 am. I hope my tablet quest is over for now, although I am like a lot of you guys on here I will never be satisfied and always have to move on to the next great gadget
cardman827 said:
That is phenomenal, thanks so much. Who knew I would get all my answers before 7 am. I hope my tablet quest is over for now, although I am like a lot of you guys on here I will never be satisfied and always have to move on to the next great gadget
Click to expand...
Click to collapse
Glad to have been able to help, like you, I just couldn't resist buying the tab on launch day because of my hunger for new tech even at the expense of not having 3g and larger storage. I convinced myself that I will not use it for calling and can use skype or tango if needed or can use my handset to tether when required also the fact that it has an sd card slot, space will not be an issue!
Hey everyone,
This may be a bit of an off question as it applies to all android phones not ust the one s but here goes....
I just picked up an iHome Bluetooth Keyboard, designed for the ipad. Connected with ease to my one S and I am currently using it to type out this post. Works fantastic. No lag to speak of and the keys are really nice. One drawback, it is designed for Ipad lol. Sooooo the question here is whether or not it is possible to remap the keys on the keyboard to perform funtions on Android. I.e. map the function buttons to quicklaunch apps or to use the arrow keys to roll around the UI as I have not yet picked up a mouse. the arrow keys work in certain apps like the text message app or the browser. keyboard is a dream for emulation, takes me back to my early pc no gamepad emulation days lol. anyways, if anyone has some input on the subject i would love to hear it. Thanks in advance to your helpful replies. Love this community!!!
Sent from my HTC VLE_U using xda app-developers app
Hi,
I've managed to remap some hotkeys by opening up the terminal emulator (which you can download here) and inserting the string "am start -a android.intent.action.MAIN -n com.android.settings/.quicklaunch.QuickLaunchSettings" without quotes (thanks to norristh for this). This way you can map each search+letter shortcut and, IN MY KEYBOARD, hotkeys are nothing but a search+letter combination (I mean, if you change the search+letter behaviour you also change the hotkey behaviour).
The only hotkeys I haven't been able to get working are the apps key and the mute key (they aren't probably integrated natively in android).
Try it out!
i bought an ihome bluetooth wireless keyboard and i am unable to pair it with my inspire4g. i need some help please. i try to type ''0000'' and ''1234'' with no luck. what am i missing. it's a race to get this done because my girlfriend wants me to take it back, but i know it will work.
Sent from my Desire HD using xda app-developers app
Hi all,
just received the keyboard today as an accessory.
I am wondering a little about some keys I'd like to find and seem unable to.
To quickly move from one homescreen to another I can swipe the screen, it there any other key combination which does the same ? Mousekey plus mouse-swipe does not feel the same.
Also a button to swap the notification would have been somethin I'd expect, I do not find it.
Is there maybe a pdf-file around somewhere which includes such information.
Thanks in advance,
Ruud
Sent from my ASUS Transformer Pad TF700T using Tapatalk HD
Ruud Westerhout said:
Hi all,
just received the keyboard today as an accessory.
I am wondering a little about some keys I'd like to find and seem unable to.
To quickly move from one homescreen to another I can swipe the screen, it there any other key combination which does the same ? Mousekey plus mouse-swipe does not feel the same.
Also a button to swap the notification would have been somethin I'd expect, I do not find it.
Is there maybe a pdf-file around somewhere which includes such information.
Thanks in advance,
Ruud
Sent from my ASUS Transformer Pad TF700T using Tapatalk HD
Click to expand...
Click to collapse
Take a look at these. I just put them in one place for you.
1. If you download Any Cut for Android and install it, then run it, then create a short cut for the activity "Quick Launch" (there may be two entries, if it doesn't work with the first one, try the second one), then using this "Quick Launch" short cut, you can define any program to be run using the hotkeys Search+(a-z,0-9), ie. Search+Z could be used to run Marvin.
2. Keyboards
See my initial thoughts on keyboards on the bottom of this post.
In case of problems with diacritics when docked, be sure to use KLSwitcher for setting your locale.
You can also try External Keyboard Helper Pro for custom layouts.
• TouchPal Free but skins cost. A favorite KB. You may have to switch back to default KB when docking.
• SwiftKey Tablet ($3.99) This KB has a large following. It’s proven to be a wonderful tablet specific keyboard that permits to do standard layout or even “thumb” style with a gap in middle. Very customizable. There is a free trial available.
• Hacker's Keyboard is a popular one for anyone that finds themselves commonly fighting to type syntax.
• Lots Of Other Tablet Keyboards To Try!
3. Links
http://forum.xda-developers.com/showthread.php?t=1824178
http://forum.xda-developers.com/showthread.php?t=1435242
Ruud Westerhout said:
To quickly move from one homescreen to another I can swipe the screen, it there any other key combination which does the same ?
Click to expand...
Click to collapse
There are "page up" and "page down" functions on the keyboard (Fn+up, Fn+down) that work, at least in the stock launcher.
You do 2 finger swipes on the keypad when it is set to gesture mode from settings to replicate screen swipes
Wow guys, what a little sleep can do.
Answers from You three is really highly appreciated. Will take me until the evening to try them out, thanks a lot !!
Ruud
Sent from my ASUS Transformer Pad TF700T using Tapatalk HD
just wondering if anybody have tried this mouse. I'm looking for a $20 - 30 mouse that would work good. I've read that some mouse are laggy/slow on pixel c. I have a logitech k480 keyboard and was thinking of pairing a mouse would be nice since I use google sheets and remote to computers (via vmware horizon client) a lot.
I've been using my pretty old Logitech Bluetooth mouse from about 5 years ago without any issue on the pixel c. Can't remember the model number (I think that stuff has all come off it now).
Thanks brown geek!
I was using a Logitech T630 and now use a Logitech MX Anywhere 2 - both work just fine. I notice you mention Horizon Client - one thing to keep in mind with the Pixel is that if you are using the hardware keyboard, hitting the key to bring up the symbols panel does not work. Windows just treats it like an Alt key. If you need to send a special symbol, you need to use the field in the Horizon client that allows you compose a string of text and then send it to the VM - that way, you are allowed to bring up the symbols pane. Not a huge deal if you don't need a lot of symbols, but a mild annoyance.
Sent from my Pixel C using Tapatalk
I'm using a microsoft M3600 mouse. It's a very good mouse.
It was not supported correctly by android 6.0 some weeks ago, so I reported the issue : it's still not working with 6.0 build but this mouse is now working perfectly on android N (google fixed the issue on N recently).
I suppose the fix should be in the next build of 6.0 too .
For more infos : https://productforums.google.com/fo...ce=footer#!msg/nexus/bJh3_vrtnZI/mYCqrw4NBQAJ
This mouse is very light and the autonomy is very good as it's a LE mouse, the tracking is also very precise.
Just tried the Pixel with a Magic mouse 2 from work. Running latest Android N preview.
I have never used a mouse previous to this on android so here's what I found.
Mouse just adds pointer, no gestures, just as if you were using your finger, cant even scroll.
Looking at youtube videos suggests the scroll should work (Magic mouse 1 on older android OS) so I will test this with my aging S4 to see how it responds.
---------- Post added at 08:35 AM ---------- Previous post was at 08:18 AM ----------
Ok so my S4 behaves the same with the added support for a right click it seems which acts as a back button.
I assume there is not a lot that can be done about and I just need to see what the full Android N release may support.
I'm using the Logitech T630. It has a touch surface with gesture support.
Has anyone used a USB hub and plugged in a wired mouse? Wondering if I could do that with a mouse I already have rather than buy a Bluetooth mouse.
Sent from my Nexus 6 using XDA-Developers mobile app
tagumcity said:
I'm using the Logitech T630. It has a touch surface with gesture support.
Click to expand...
Click to collapse
How well does the gesture support work?
Can you swipe to move between home screens and scroll in browsers etc?
Just interested as I ran a input logging app and only the general movement and left and right click seem to suggest they were sending data from the Magic Mouse 2.
Cheers,
Volvoash said:
How well does the gesture support work?
Can you swipe to move between home screens and scroll in browsers etc?
Click to expand...
Click to collapse
I just got this mouse as well. There is no physical scrolling wheel, but you can move your fingers forwards and backwards anywhere on the mouse to scroll vertically and swipe left and right on the mouse to switch pages in your launcher. (It won't take you back from Google Now to your homescreen in the Google Launcher for some reason, but you can accomplish it with a click-and-drag) The scrolling is very responsive and works well, although Nougat does not give you a whole lot of options for adjusting things such as scrolling speed, only tracking speed. There may be third party apps for this, though.
I've seen other mention that right clicking functions as a back button for them, but this has been very app-dependant for me.