Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- boolean buttonValue = false;
- boolean ascendToggle = false;
- boolean isButtonDown = false;
- private void someFunction() {
- if (buttonValue == true && isButtonDown == false) {
- isButtonDown = true;
- if (buttonValue && !ascendLast) {
- ascendToggle = !ascendToggle;
- ascendLast = //code
- if (ascendToggle) {
- //code
- }
- }
- } else {
- isButtonDown = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement