Posted January 9, 201312 yr Hey guys I am in need of a little help. I am trying to make a toggle key but it toggles twice every key press. public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) { if(toggle) { toggle = false; System.out.println("Toggle On"); } else { toggle = true; System.out.println("Toggle Off"); } } This returns 2013-01-09 06:59:48 [iNFO] [sTDOUT] Toggle On 2013-01-09 06:59:48 [iNFO] [sTDOUT] Toggle Off for every key press. What am I doing wrong? Thanks, Rick
January 9, 201312 yr Remember to add kb.unPress "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.