/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/minor_mode.cc

  • Committer: edam
  • Date: 2012-02-25 14:54:33 UTC
  • Revision ID: edam@waxworlds.org-20120225145433-kih8qs45x05cum46
removed Bounce library and updated/fixed new code

Show diffs side-by-side

added added

removed removed

30
30
}
31
31
 
32
32
 
33
 
void MinorMode::press()
 
33
void MinorMode::activate()
 
34
{
 
35
        _flavour = 0;
 
36
}
 
37
 
 
38
 
 
39
void MinorMode::next_flavour()
34
40
{
35
41
        if( ++_flavour >= _num_flavours )
36
42
                _flavour = 0;
37
43
}
38
44
 
39
45
 
40
 
void MinorMode::activate()
41
 
{
42
 
        _flavour = 0;
43
 
}
44
 
 
45
 
 
46
46
int MinorMode::get_flavour()
47
47
{
48
48
        return _flavour;
49
49
}
50
 
 
51
 
 
52
 
Drawer &MinorMode::get_drawer()
53
 
{
54
 
        return *this;
55
 
}