mirror of
https://github.com/dwhinham/mt32-pi.git
synced 2026-10-06 13:39:10 +00:00
This commit adds a simple physical control system with two schemes: * simple_buttons: 4-button scheme * simple_encoder: 2-button scheme + rotary encoder (with button)
35 lines
916 B
C
35 lines
916 B
C
//
|
|
// button.h
|
|
//
|
|
// mt32-pi - A bare-metal Roland MT-32 emulator for Raspberry Pi
|
|
// Copyright (C) 2020 Dale Whinham <daleyo@gmail.com>
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
//
|
|
|
|
#ifndef _button_h
|
|
#define _button_h
|
|
|
|
enum class TButton
|
|
{
|
|
Button1,
|
|
Button2,
|
|
Button3,
|
|
Button4,
|
|
|
|
EncoderButton
|
|
};
|
|
|
|
#endif
|