1 // Copyright 2010 Christophe Henry
2 // henry UNDERSCORE christophe AT hotmail DOT com
3 // This is an extended version of the state machine available in the boost::mpl library
4 // Distributed under the same license as the original.
5 // Copyright for the original version:
6 // Copyright 2005 David Abrahams and Aleksey Gurtovoy. Distributed
7 // under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
16 // hardware-generated events
19 struct SouthPressed {};
20 struct SouthReleased {};
21 struct MiddleButton {};
23 struct EastReleased{};
27 // internally used events
33 CloseMenu(EVENT const &) {}
36 struct MenuMiddleButton {};
38 struct SongFinished {};
41 StartSong (int song_index):m_Selected(song_index){}
44 struct PreviousSong{};
46 struct NextSongDerived : public NextSong{};
47 struct ForwardTimer{};
48 struct PlayingMiddleButton{};