最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - E-ink Onyx Boox GO 10.3 SDKRawDrawing not working - Stack Overflow

programmeradmin2浏览0评论

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;
发布评论

评论列表(0)

  1. 暂无评论