-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Kinectic scrolling #131
Kinectic scrolling #131
Conversation
for SongNodes, Scores, Download Results, Download Info
Conflicts: src/itdelatrisu/opsu/ScoreData.java src/itdelatrisu/opsu/downloads/DownloadNode.java src/itdelatrisu/opsu/states/DownloadsMenu.java src/itdelatrisu/opsu/states/SongMenu.java
@@ -372,21 +380,69 @@ public void render(GameContainer container, StateBasedGame game, Graphics g) | |||
|
|||
// song buttons | |||
BeatmapSetNode node = startNode; | |||
int songButtonIndex = 0; | |||
if (node != null && node.prev != null) { | |||
int startNodeOffsetoffset = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the 't' character different here? ('t')
This looks fantastic! Thanks for doing this! Some comments:
I also added a couple of comments in the diff. |
To the 2 diff comments. Yeah.... accident. I'm just going revert those lines. Since I thought I didn't need it and deleted it, and then added that later on. |
Here's some output from the events. These are the isolated tap and drag events (same for mouse and touchscreen), and they work as expected -- nothing happens on tap, normal scroll on drag.
This is for two consecutive mouse drags, which works as expected:
And this last section, for consecutive touch drags, produces the bug -- first drag is normal, second drag resets the first.
I think the difference is in the |
Thanks, try this. I modified slicks input to set oldx, oldy when it gets mousePressed events. |
Awesome, it works fine now. I'll test a few more things and merge this. Thanks again! |
Also made some members private. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
for SongNodes, Scores, Download Results, Download Info.