-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement optional mods and cancel buttons
- Loading branch information
Showing
8 changed files
with
182 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/link/infra/packwiz/installer/ui/InputStateHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package link.infra.packwiz.installer.ui; | ||
|
||
public class InputStateHandler { | ||
private boolean optionsButtonPressed = false; | ||
private boolean cancelButtonPressed = false; | ||
|
||
synchronized void pressCancelButton() { | ||
this.cancelButtonPressed = true; | ||
} | ||
|
||
synchronized void pressOptionsButton() { | ||
this.optionsButtonPressed = true; | ||
} | ||
|
||
public synchronized boolean getCancelButton() { | ||
return cancelButtonPressed; | ||
} | ||
|
||
public synchronized boolean getOptionsButton() { | ||
return optionsButtonPressed; | ||
} | ||
} |
Oops, something went wrong.