NeoTechni Well-Known Member Licensed User Longtime User Jan 8, 2013 #1 I plugged a mouse into my Nexus 7 and it works great! How do I detect right clicking and the scroll wheel though?
I plugged a mouse into my Nexus 7 and it works great! How do I detect right clicking and the scroll wheel though?
W wheretheidivides Active Member Licensed User Longtime User Jan 9, 2013 #2 Anyone know that would this work with Ooya? That would make a lot of programs compatible with it without converting, Upvote 0
Anyone know that would this work with Ooya? That would make a lot of programs compatible with it without converting,
Erel B4X founder Staff member Licensed User Longtime User Jan 9, 2013 #3 See this answer: bluetooth - Handle all mouse events in Android - Stack Overflow You can use Reflection to find the actual button in Android 4+. Upvote 0
See this answer: bluetooth - Handle all mouse events in Android - Stack Overflow You can use Reflection to find the actual button in Android 4+.
NeoTechni Well-Known Member Licensed User Longtime User Jan 9, 2013 #4 That wouldnt work for usb though Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 9, 2013 #5 As I understand it, it should work with USB mouse as well. Upvote 0
almontgreen Active Member Licensed User Longtime User Oct 15, 2013 #6 Erel said: See this answer: bluetooth - Handle all mouse events in Android - Stack Overflow You can use Reflection to find the actual button in Android 4+. Click to expand... there doesn't seem to be any way to find ACTION_SCROLL Upvote 0
Erel said: See this answer: bluetooth - Handle all mouse events in Android - Stack Overflow You can use Reflection to find the actual button in Android 4+. Click to expand... there doesn't seem to be any way to find ACTION_SCROLL
eps Expert Licensed User Longtime User Oct 15, 2013 #7 almontgreen said: there doesn't seem to be any way to find ACTION_SCROLL Click to expand... According to that link there is, but only API 12+ For Api Level 12+: OnGenericMotionListener has been added. I use this one to detect mouse moves withACTION_HOVER_MOVE and wheel changes with ACTION_SCROLL. Upvote 0
almontgreen said: there doesn't seem to be any way to find ACTION_SCROLL Click to expand... According to that link there is, but only API 12+ For Api Level 12+: OnGenericMotionListener has been added. I use this one to detect mouse moves withACTION_HOVER_MOVE and wheel changes with ACTION_SCROLL.
almontgreen Active Member Licensed User Longtime User Oct 15, 2013 #8 Yes, but I don't seem to be able to get it to work. I see ACTION_HOVER_MOVE but no ACTION_SCROLL in the log when I move the mouse scroll wheel. I must be missing something. Upvote 0
Yes, but I don't seem to be able to get it to work. I see ACTION_HOVER_MOVE but no ACTION_SCROLL in the log when I move the mouse scroll wheel. I must be missing something.
almontgreen Active Member Licensed User Longtime User Oct 15, 2013 #10 I'm running Android 4.2.2 and I don't know exactly how to specify the API (in the manifest I put 12 and then 14 but no difference) Upvote 0
I'm running Android 4.2.2 and I don't know exactly how to specify the API (in the manifest I put 12 and then 14 but no difference)
eps Expert Licensed User Longtime User Oct 16, 2013 #11 So what exactly have you specified in the manifest file? Upvote 0
almontgreen Active Member Licensed User Longtime User Oct 16, 2013 #12 AddManifestText( <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/> 'tried 12, 13 and 14 <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"/>) SetApplicationAttribute(android:icon, "@drawable/icon") SetApplicationAttribute(android:label, "$LABEL$") Upvote 0
AddManifestText( <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/> 'tried 12, 13 and 14 <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"/>) SetApplicationAttribute(android:icon, "@drawable/icon") SetApplicationAttribute(android:label, "$LABEL$")
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2013 #13 Your issue is not related to the manifest file. Upvote 0
eps Expert Licensed User Longtime User Oct 16, 2013 #14 Erel said: Your issue is not related to the manifest file. Click to expand... ah... Neo, have you got a test App I can play with? Upvote 0
Erel said: Your issue is not related to the manifest file. Click to expand... ah... Neo, have you got a test App I can play with?