/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/button.h

  • Committer: Tim Marston
  • Date: 2012-05-09 20:53:26 UTC
  • Revision ID: tim@ed.am-20120509205326-23nmnh3i05hotlro
moved modes to a subdirectory

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        /** pin */
67
67
        int _pin;
68
68
 
69
 
        /** last state */
70
 
        bool _state_last;
71
 
 
72
 
        /** time when this state began */
73
 
        unsigned long _millis_state;
74
 
 
75
 
        /** amount of time that we've already triggered events for this press */
76
 
        unsigned long _millis_done;
 
69
        /** current state */
 
70
        bool _state;
 
71
 
 
72
        /** time when current state began */
 
73
        unsigned long _state_millis;
 
74
 
 
75
        /** milliseconds that have been accountred for (in terms of
 
76
         * triggering events) since current state began */
 
77
        unsigned long _state_duration_done;
77
78
 
78
79
        /** pointer to event times */
79
80
        int *_event_times;
81
82
        /** pending event */
82
83
        int _pending_event;
83
84
 
84
 
        /** an interim event buffer */
85
 
        int _interim_event;
86
 
 
87
 
        /** send interim events? */
 
85
        /** send interim presses? */
88
86
        bool _send_interim;
89
87
 
90
 
        /** when not sending interim events, ignore the next unpress */
 
88
        /** when not sending interim presses, ignore the next unpress */
91
89
        bool _ignore_next_unpress;
92
90
 
93
91
};