Galaxy Note
Monkey Targets Forums/Android/Galaxy Note
| ||
Anybody else have a Galaxy Note? Now I have a second device to test with. The Galaxy S Captivate being the other. Is it too premature to ask if stylus (s-pen) support will be added to Monkey or Diddy? |
| ||
Wouldn't stylus just be a mouse? Or are you talking about pressure sensitive... |
| ||
Pressure sensitive & the stylus button. |
| ||
Heres an example from the Android SDK: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TouchPaint.html Looks like you need to add onHoverEvent and change onTouchEvent in Mojo, and use MotionEvent.BUTTON_TERTIARY/MotionEvent.BUTTON_SECONDARY etc to capture the stylus buttons. And for pressure you can get it from the event: event.getPressure(j) The pressure stuff is available from API 5 (Android 2.0), but the stylus buttons are only available from API 14 (Android 4.0)... |
| ||
Sorry for the uber late response to this post, but I've only just got into MonkeyCoder and this is a post relating to the same question I have about pen pressure feedback. :) I see above that you can get the value from the 'event.getPressure(j)'. But how would I go about implementing that to work in Monkeycoder? Thanks Mike |