diff options
Diffstat (limited to 'src/org/usfirst/frc/team4272/robotlib/PushButton.java')
-rw-r--r-- | src/org/usfirst/frc/team4272/robotlib/PushButton.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/org/usfirst/frc/team4272/robotlib/PushButton.java b/src/org/usfirst/frc/team4272/robotlib/PushButton.java index f6615ff..acfe89f 100644 --- a/src/org/usfirst/frc/team4272/robotlib/PushButton.java +++ b/src/org/usfirst/frc/team4272/robotlib/PushButton.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2015-2016 Luke Shumaker. + * Copyright (c) 2015-2017 Luke Shumaker. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -29,7 +29,11 @@ package org.usfirst.frc.team4272.robotlib; /** - * TODO: Write JavaDocs + * PushButton fires an event on-button-down. + * + * In each iteration of the main loop, call the + * {@link #update(boolean)} method with the current button state. It + * will return whether or not an event should be fired this iteration. */ public class PushButton { private boolean prev = false; |