Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
lib/Controls/Controls.h@22:d265f506446b, 2019-05-08 (annotated)
- Committer:
- Kern_EL17KJTF
- Date:
- Wed May 08 23:54:56 2019 +0000
- Revision:
- 22:d265f506446b
- Parent:
- 19:8400ecdb69e9
- Child:
- 23:ecb74e52163d
Documentation - Instructions Class Complete.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Kern_EL17KJTF | 13:94abfe83a294 | 1 | #ifndef CONTROLS_H |
| Kern_EL17KJTF | 13:94abfe83a294 | 2 | #define CONTROLS_H |
| Kern_EL17KJTF | 13:94abfe83a294 | 3 | |
| Kern_EL17KJTF | 13:94abfe83a294 | 4 | #include "mbed.h" |
| Kern_EL17KJTF | 13:94abfe83a294 | 5 | #include "N5110.h" |
| Kern_EL17KJTF | 13:94abfe83a294 | 6 | #include "Gamepad.h" |
| Kern_EL17KJTF | 13:94abfe83a294 | 7 | |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 8 | /** Controls Class |
| Kern_EL17KJTF | 22:d265f506446b | 9 | *@brief This class is for the controls menu screen. |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 10 | *@author Kern Fowler |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 11 | *@version 1.0 |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 12 | *@date May 2019 |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 13 | */ |
| Kern_EL17KJTF | 13:94abfe83a294 | 14 | |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 15 | class Controls { |
| Kern_EL17KJTF | 13:94abfe83a294 | 16 | |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 17 | public: |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 18 | /** Controls Constructor |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 19 | @brief Builds my default Controls contructor. |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 20 | @details This does not have any setup. |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 21 | */ |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 22 | Controls(); |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 23 | /** Controls Destructor |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 24 | @brief Builds my default Controls Destructor. |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 25 | @details This does not have any setup. |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 26 | */ |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 27 | ~Controls(); |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 28 | // Mutators |
| Kern_EL17KJTF | 13:94abfe83a294 | 29 | |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 30 | /** |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 31 | *@brief Prints the Controls menu. |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 32 | *@param pad The Gamepad class is used. |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 33 | *@param lcd The N5110 class is used. |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 34 | *@details Prints various text to screen relating to the game controls. |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 35 | */ |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 36 | void controls_run(Gamepad &pad, N5110 &lcd); |
| Kern_EL17KJTF | 13:94abfe83a294 | 37 | }; |
| Kern_EL17KJTF | 13:94abfe83a294 | 38 | |
| Kern_EL17KJTF | 19:8400ecdb69e9 | 39 | #endif |