Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. boolean buttonValue = false;
  2. boolean ascendToggle = false;
  3. boolean isButtonDown = false;
  4.  
  5. private void someFunction() {
  6.     if (buttonValue == true && isButtonDown == false) {
  7.         isButtonDown = true;
  8.  
  9.         if (buttonValue && !ascendLast) {
  10.             ascendToggle = !ascendToggle;
  11.             ascendLast = //code
  12.  
  13.             if (ascendToggle) {
  14.                 //code
  15.             }
  16.         }
  17.     } else {
  18.         isButtonDown = false;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement