Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Multi-touch gestures #6

Open
rpseng opened this issue Aug 1, 2013 · 5 comments
Open

Multi-touch gestures #6

rpseng opened this issue Aug 1, 2013 · 5 comments

Comments

@rpseng
Copy link

rpseng commented Aug 1, 2013

Hi All,

This is a very interesting project, congrats on keeping it running. It should be nice to have support for multi-touch commands.

I can program in Java very well and already have the server side code running under eclipse over here. However I've never compiled code for android. Unfortunately, this will need changes in the client side. Any good (fast) tutorial on how to compile the client side code?

All the best.

@Tsaukpaetra
Copy link
Collaborator

The first and most important step is to download the android sdk. After
installing that, it should be a simple matter of importing the project in
eclipse (as an android app). After that, you should be able to debug the
application.
On Aug 1, 2013 3:46 PM, "rpseng" notifications@github.com wrote:

Hi All,

This is a very interesting project, congrats on keeping it running. It
should be nice to have support for multi-touch commands.

I can program in Java very well and already have the server side code
running under eclipse over here. However I've never compiled code for
android. Unfortunately, this will need changes in the client side. Any good
(fast) tutorial on how to compile the client side code?

All the best.


Reply to this email directly or view it on GitHubhttps://github.com//issues/6
.

@Tsaukpaetra
Copy link
Collaborator

Any luck/trouble? If you need better instruction, I can probably put together a (very) short walkthrough, although existing youtube videos should suffice.

@rpseng
Copy link
Author

rpseng commented Aug 11, 2013

Dear Tsaukpaetra,

Actually I manage to build the code (client and server) and successfully added support for two finger scrolling. You will need just to edit the ControlView.onTouchMove as follows:

private void onTouchMove(MotionEvent event){
    if (this.mouseMoveOrWheel){
        if(event.getPointerCount()==2){
        // a new pointer, start a wheel event
            this.mouseMoveOrWheel = false;
            onTouchDownMouseWheel(event);
            this.holdPossible = false;
        }
        else
        this.onTouchMoveMouseMove(event);
    }
    else{
        this.onTouchMoveMouseWheel(event);
    }
}

I'm not used to Github (I'm a subversion user) and I'm not sure how to send a patch. Further, I have played with the code in several points...

All the best!

@Tsaukpaetra
Copy link
Collaborator

If you make a patch and drop it somewhere I could probably apply it. I'll test the code snippet you posted above. ;)

Tsaukpaetra added a commit that referenced this issue Aug 11, 2013
Using code provided from Issue #6, added scrolling by second-touch (two-fingers).

Removed unused mousewheel variable.
@Tsaukpaetra
Copy link
Collaborator

Added your code above in commit afdbac8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants