/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-03-21 21:24:17 UTC
  • Revision ID: tim@ed.am-20120321212417-dnba5l1oheddeyxw
fixed time centring and display in settings mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        void set_event_times( int *event_times );
44
44
 
45
45
        /**
46
 
         * Set button press mode
47
 
         *
48
 
         * @param send_interim send interim presses during a long press?
49
 
         */
50
 
        void set_press_mode( bool send_interim );
51
 
 
52
 
        /**
53
46
         * Update internal state (call as regularly sa possible!)
54
47
         */
55
48
        void update();
74
67
 
75
68
        /** milliseconds that have been accountred for (in terms of
76
69
         * triggering events) since current state began */
77
 
        unsigned long _state_duration_done;
 
70
        unsigned long _state_duration;
78
71
 
79
72
        /** pointer to event times */
80
73
        int *_event_times;
82
75
        /** pending event */
83
76
        int _pending_event;
84
77
 
85
 
        /** send interim presses? */
86
 
        bool _send_interim;
87
 
 
88
 
        /** when not sending interim presses, ignore the next unpress */
89
 
        bool _ignore_next_unpress;
90
 
 
91
78
};
92
79
 
93
80