Mouse wheel on any button - Android Q&A, Help & Troubleshooting

Hello,
I have searched the web but without any solution that I am able to understand.
I have bought an android box from china which comes with a ir-remote.
As I am plannig to use this box as a desktop replacement as soon as i am able to get my new NAS up to speed I want to be able to use this box comfortably, even from my couch.
I use some sites to read comics and most of them work with arrow keys on chrome. Some have limited support for this so I need to be able to use the mouse (or at least a leftklick) and the mousewheel to navigate this sites if they dont support arrow keys.
The box has an ir receiver and bluetooth so I have multiple controll options avaliable.
Now to the remapping of keys:
I have found this:
source(dot)android(dot)com -> Keyboard Device
with this table and the vendorxxx.kl file I should be able to remap buttons.
now the caviat: arrow does not work propperly on every site and page_up/down jumps too far.
is there a way to confiure page_up/down in a way that it doesn't jump as far so i could use multiple clicks to jump as far as i need or is there a way to emulate a mouse wheel scroll with a analoge stick from a bluetooth controller?
I have as I said a ir remote and a generic usb controller and this:
Baofeng Monji 4 Bluetooth Controller (wireless Nunchuck style)
I would prefere the mouse wheel as it hase more use but a substitute would be fine.
I hope someone can help me

Related

[Q] USB keyboard 'ctrl' key issue

One of the reasons I got my g table is to use it as a substitue for my labtop.
Even though my laptop is small enough, sometimes it is hard to cary it arround, as I keep it by my side 24/7. As I do most of my work on the super computer using ssh, I though the 'g tablet' can replace my laptop. USB keyboard seemed to work just fine until I tried control key on the keyboard. Control key simple does not work at call on g Tablet(Probably on all android system), and ctrl key is so critial to me as I use emacs! Emacs user would know what no control key means to emacs. Thus, I wonder if anyone knows how to utiliza the control key on the USB keyboard. Softkeybord can not be a solution considering I would use control key more than 1000 times per connection. Thank you.
Is Bluetooth keyboard working better?
I have seen lots of posts about using bluetooth keyboard.
I wonder if ctrl key and alt key are working with bluetooth keyboard.
Anyone?

Bluetooth Keyboard and Mouse

Greetings everyone,
I have been able to hook up a Bluetooth Keyboard and Mouse to my EVO 3D.
The keyboard works great. I have been able to type perfectly in my applications as well as configure the keyboard to work in my emulators.
The mouse I am having an issue with the "right" mouse button not working as the "go back" function in Android. Has anyone else had this issue? According to all the research I have done this is supposed to work.
I have also noticed in the CyanogenMod 6.X ROM videos on Youtube, that the people using a mouse also get a mouse cursor on their screens as well as being able to right click to "go back" and then using their middle mouse button as a "home" function in android. I did a search through 16 pages of posts on this and could not find an answer. Maybe someone reading this who is smarter than I am can shed some light on the issue.
This is what I am currently using.
Mouse: Microsoft Bluetooth Notebook Mouse 5000
Keyboard: Logitech MX5500 Keyboard.
If anyone else is using a mouse and is not having issues could you tell me the brand/model please? Maybe it is just an issue with this Microsoft Mouse.
Well it looks like the fancy mouse support with a cursor and button functionality was something that was included in CyanogenMod 6.X then removed on CyanogenMod 7.
They then added a patch for version 7. But now apparently it is being included in his latest CyanogenMod.
Regardless, it appears you need root access
**taps desk until HTC removed encryption from bootloader**
Yeah, but on the bright side, this is the first time I've seen HTC add in HID support for BT keyboards!!!!!!
HUGE gain!

SixAxis App Multiplayer Support?

I've been trying to find some of the best apps for adding a PS3 controller via bluetooth for my N64oid app. I've found some great mappings on here, but I'm curious if there's any way I can enable more than one controller using this combination of the two apps.
I heard N64oid supports multiplayer with no problem, but SixAxis I'm just not sure about. Has anyone heard anything or tried it out?
I have not tried it, but from looking at the two apps, it should be very easy.
In sixaxis, go to Menu > Preferences > Input Mappings > and select 2nd or high controller. Then map keyboard values to the controller (be sure to not use buttons that are taken for another controller). Lastly, go into the N64oid settings and map the second controller.
Let me know how it works!
felisen said:
I have not tried it, but from looking at the two apps, it should be very easy.
In sixaxis, go to Menu > Preferences > Input Mappings > and select 2nd or high controller. Then map keyboard values to the controller (be sure to not use buttons that are taken for another controller). Lastly, go into the N64oid settings and map the second controller.
Let me know how it works!
Click to expand...
Click to collapse
Hey, thanks for the support, I tried this but when I do both my PS3 controllers (connected via wires) have the same input buttons as far as N64oid is concerned...Like up on controller one is the same as up on controller two... Is there something I'm doing wrong?
I'd also like to know if the transformer will actually charge the controllers and connect via bluetooth, so far I've only used wired.
Thanks!
CobraBytez said:
Hey, thanks for the support, I tried this but when I do both my PS3 controllers (connected via wires) have the same input buttons as far as N64oid is concerned...Like up on controller one is the same as up on controller two... Is there something I'm doing wrong?
I'd also like to know if the transformer will actually charge the controllers and connect via bluetooth, so far I've only used wired.
Thanks!
Click to expand...
Click to collapse
Are you using the sixaxis app and having this problem, or is this just using the native usb gamepad support? If it's the latter, than I don't have an answer; I don't even know if the native support allows multiple controllers. If you are using the sixaxis app, then be sure that the key mappings within that program are seperate, before you try and map within N64oid (basically have to map things twice, first the controller to keyboard values (within sixaxis), then those values to N64 keys (within N64oid)).
Don't know about charging over usb, I want to say yes, but I can't back that up. As for bluetooth, you can do it (it is what I do), but it requires an app like sixaxis (which requires root).
It works. All you have to do is get the Sixaxis Pair tool (make sure you have a computer nearby and a usb cable) and then when you open n64oid, to to input>key mappings> enable controller 1 + 2 and then set the appropriate controls. If this doesn't work, go to other settings>and check use input method
EDIT: Make sure it's compatible using the compatibility checker
mohitrocks said:
It works. All you have to do is get the Sixaxis Pair tool (make sure you have a computer nearby and a usb cable) and then when you open n64oid, to to input>key mappings> enable controller 1 + 2 and then set the appropriate controls. If this doesn't work, go to other settings>and check use input method
EDIT: Make sure it's compatible using the compatibility checker
Click to expand...
Click to collapse
Couldn't get this to work for me. Got both controllers connected but could not not get them to differentiate between the two. everything controls player 1
kinda solution
i have kinda got this working now, was able to successfully play 2 player mario cart today.
in sixaxis here is what i did....
once you have both controllers paired to the phone and change IME is set to sixaxis.
go to preferences
go to game pad settings
make sure enable gamepad is NOT CHECKED
go to edit mappings and make sure everything is as its supposed to be up is up, left is left, right is right, etc etc.
now open n64oid
go to settings
go to input settings
go to key mappings
enable controller 1
load profile 1
clear all the settings so everything says "none"
leave d-pad left, right, up, down as <none> (for some reason i havent figured out yet, if you set these it stops the other controller working). then do the following
c-left, right, up and down are also mapped as <none> (i dont know what these do either)
then map the following buttons of controller 1
start
button A
button B
L trigger
R trigger
Z trigger
(map those buttons to whatever buttons you want)
analog left, analog right, analog up, analog down, (map these to the analog directions on the left analog stick of controller 1)
leave the rest as <none>
scroll back up to the top as save it as profile 1
now
enable controller 2
load profile 2
clear all the settings so everything says "none"
leave d-pad left, right, up, down as <none> (for some reason i havent figured out yet, if you set these it stops the other controller working). then do the following
c-left, right, up and down are also mapped as <none> (i dont know what these do either)
then map the following buttons of controller 2
start
button A
button B
L trigger
R trigger
Z trigger
(map those buttons to whatever buttons you want)
analog left, analog right, analog up, analog down, (map these to the analog directions on the left analog stick of controller 2)
leave the rest as <none>
scroll back up to the top as save it as profile 2
--------now it should work hopefully for both players to have an effective race------
one thing i found weird is when mapping the analog stick of controller 1 it saved all the directions for both analog sticks and the joypad directions as d-pad left, right, up, down regardless of which one you used to map the key
but for controller 2 it saved the directions as unknown 17, unknown 18 for analog left and righ on both analog sticks
analog up =A analog down =B again for both analog sticks
on the joypad it was up =C down =D
left = A
right = B
i'm hoping someone can take this information and refine it a bit to make more sense but maybe this will help some people troubleshoot a bit further. I'd love to figure out how to get this working for 4 controllers but having seen how it is above im not sure if it will be possible. Also to get it working for golden eye might also be tricky.
thanks and good night.
hello i have a similar question. If i put one ps3 gamepad with sixaxis controller could i use at the same time a bluetooth gamepad in order to play multiplayer games?
Because i am not right now on my android tv box i can not recall if i get sixaxis controller i could use to pair at the same with bluetooth gamepad. I will try though later so i could give a feedback, if anybody cares.

[Q] Using USB Gamepad plugged in PC to control phone

Hello to all, sorry for the long title but i wanted to make it clear.
Here's the situation, I sometimes play emulated games on my Galaxy S3 and as you may realize, the virtual on-screen gamepad isn't very comfortable when on my home (it gets the job done if i'm using it as a portable console) so I decided that i wanted to use an USB Gamepad i own to play my games in a more comfortable way. I know i can just go and get an OTG cable, and i will try to get one these days, but I fear they might not sell them here and I'm not a fan of buying stuff online.
My initial solution was to use My Mobiler for Android , as it allows to use the pc keyboard and mouse on the phone after connecting via wifi or usb, together with Xpadder, a software to map my gamepad to keyboard keys. While this gets me to the point of being able to navigate my phone using the gamepad, when i try to set up the Input in the emulators they will make a distinction between the arrows and Return keys (which seem to be taken as the Hardware DPAD buttons, that's why i can navigate the phone and use those functions in-game) and the other keys in my physical keyboard, which won't work if mapped to game buttons (A,B,L,R, etc) but will work if mapped to emulator options such as Savestates or Fastforward.
This is really disappointing as I actually thought i could save on the OTG cable by using this, but being things as they are, I'd like to ask if anyone can give me a hint on how to make this work the way I want it, or if by any chance someone (devs specially) would be up to the task of developping a server/client app that would work as Gamepad-to-Phone version of Xpadder (mapping the gamepad buttons as Phone-Hardware keys (Camera, Power, Back, Menu, Volume Up, Volume Down, DPAD) with MyMobiler's capabilty to connect with the phone via wifi and send remote input to it by installing an "Input Method" as well. I know this might require root but my phone is rooted already so that'd be fine for me, and I'm sure I'm not the only one that would use such an app to play games more easily without buying extra cables, which is why i'd ask anyone that decides to take on such a project to make it free because it isn't a very profitable project as people would rather buy an OTG cable or use other bluetooth/wireless controllers to play instead.
So any help/suggestion/advice will be greatly appreciated
Sorry for the double post, but I thought this would be better for those who already saw the topic, in case they're interested on doing the same I did.
In the end I managed to make it work with My Boy (Gba emulator) by using MyMobiler's hardware mapping for volume +/-, back, search and menu buttons and the DPAD (F10,F9, ESC, F2, F3, arrows and Enter) and now i can more or less play emulated games, as long as they don't require any buttons aside from select, start and 4 other buttons. As I said, emulator's own actions such as save, load, fast forward or opening emulator settings can be mapped to any other non-hardware key.
Still it would be great if there was an Input Method that would make the emulators recognize other hardware keys (as if there was a complete hardware keyboard for example), I've tried GBC.Emu with my workaround and it's useless.. It recognizes the volume +/-, menu and search buttons as Virtual; and only the Back and DPAD as mobiler_keyboard. making it unplayable this way (you'd need at least 4 buttons aside from the Dpad).
Exactly what I was looking for....
This is somewhat similar to what I am looking for.I am searching for a tool that would send information to my android over local Wifi (same router) via usb. For example, I want to connect my xbox360 controller to my pc and use it as a game controller for my android over wifi. I tried OTG, but unfortunately my hardware dont support it...and I wondered if at all this idea would work. Any help here?

/dev/uinput Mouse/TouchScreen Controls

I am working on a native library that creates 2 virtual input devices with /dev/uinput. 1 is a keyboard and the other is mouse. I have the keyboard working perfectly, but I am having a hard time with the mouse.
The library is a part of a remote control application I am working on that has a firewall punch through (for devices like android sticks or Google TV's that sit behind a firewall so you don't have to do any port forwarding).
I have the mouse clicking working just fine, but I am struggling setting the mouse pointers position. I can't get the mouse to go to where I want it.
My mouse creation and control code can be found here:
pastebin.com/ifNYF5BC
I am not sure what I am doing wrong. I have read some people saying it's not possible while other similar apps I have seen are doing what I want (in appearance at least).

Categories

Resources