I am working on BOOX GO 10.3 and trying to enable raw drawing using the Onyx SDK.
I successfully implemented raw drawing on BOOX Note 2 using:
TouchHelper touchHelper = TouchHelper.create(surfaceView, getRawInputCallback());
touchHelper.openRawDrawing();
touchHelper.setRawDrawingEnabled(true);
However, on BOOX GO 10.3, I receive no stylus input inside getRawInputCallback() despite successfully initializing TouchHelper.
Questions:
Has BOOX GO 10.3 changed how raw drawing input works?
Is there a new SDK version or different method required for stylus input?
Is there any security restriction preventing access to ViewUpdateHelper and EpdController?
Any guidance or updated documentation would be greatly appreciated!
On GO 10.3 there is no error, or at least I did not see one, but where trying to write nothing happens - on NOTE 2 i receive logs; here is the additional code that should generate the log entries.
public RawInputCallback getRawInputCallback() {
if (rawInputCallback == null) {
rawInputCallback = new RawInputCallback() {
@Override
public void onBeginRawDrawing(boolean b, TouchPoint touchPoint) {
Log.d(TAG, "onBeginRawDrawing: " + touchPoint);
}
@Override
public void onRawDrawingTouchPointMoveReceived(TouchPoint touchPoint) {
Log.d(TAG, "onRawDrawingTouchPointMoveReceived: " + touchPoint);
}
@Override
public void onRawDrawingTouchPointListReceived(TouchPointList touchPointList) {
Log.d(TAG, "onRawDrawingTouchPointListReceived: " + touchPointList.size());
}
@Override
public void onEndRawDrawing(boolean b, TouchPoint touchPoint) {
Log.d(TAG, "onEndRawDrawing: " + touchPoint);
}
@Override
public void onBeginRawErasing(boolean b, TouchPoint touchPoint) {
//touchHelper.setRawDrawingRenderEnabled(false);
}
@Override
public void onEndRawErasing(boolean b, TouchPoint touchPoint) {
//touchHelper.setRawDrawingRenderEnabled(true);
}
@Override
public void onRawErasingTouchPointMoveReceived(TouchPoint touchPoint) {
// Handle erasing move
}
@Override
public void onRawErasingTouchPointListReceived(TouchPointList touchPointList) {
// Handle erasing points received
}
};
}
return rawInputCallback;