Skip to content

Commit

Permalink
Merge pull request #37 from Eiim/ntr-heartbeat
Browse files Browse the repository at this point in the history
merged ntr-heartbeat branch into main
  • Loading branch information
ChainSwordCS authored Oct 8, 2024
2 parents 5ec367b + f5ec4a9 commit da31c5f
Show file tree
Hide file tree
Showing 4 changed files with 624 additions and 80 deletions.
8 changes: 8 additions & 0 deletions src/main/java/chokistream/KeypressHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ public void keyPressed(KeyEvent e) {
} else if(ck.get(Controls.INTERLACE).matches(e)) {
c.toggleInterlacing();
}
} else if(client instanceof NTRClient) {
NTRClient c = (NTRClient) client;

if(ck.get(Controls.QUALITY_UP).matches(e)) {
c.incrementQuality(5);
} else if(ck.get(Controls.QUALITY_DOWN).matches(e)) {
c.incrementQuality(-5);
}
}
} catch(IOException e1) {
output.displayError(e1);
Expand Down
Loading

0 comments on commit da31c5f

Please sign in to comment.