Yang Zhenye 201199680

Dependencies:   mbed

Menu/Menu.h

Committer:
yangzhenye
Date:
2020-05-08
Revision:
3:30c81344beff
Parent:
2:baca89f466bc
Child:
4:eb8dca1dc341

File content as of revision 3:30c81344beff:

#ifndef MENU_H
#define MENU_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "RoonyEngine.h"

struct State {
    int output;
    int next_state[4]; }
    
class Menu {
    public:
    Menu();
    ~Menu();
    void init();
    void run(N5110 &lcd, Gamepad &gamepad);
    
    private:
    void dispaly_page1();
    void run_engine(N5110 &lcd, Gamepad &gamepad);
    void display_page2();
    void display_page3();
    void output();
    void input(bool start, bool back, bool x);
    int _output;
    int _state;
    int _input;
    };
    #endif