fixGB/input.h
FIX94 e5004bf4a7
-corrected small mistake in input code
-made the libretro port work a bit smoother
2018-03-06 20:51:40 +01:00

27 lines
547 B
C

/*
* Copyright (C) 2017 FIX94
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef _INPUT_H_
#define _INPUT_H_
#define BUTTON_A 0
#define BUTTON_B 1
#define BUTTON_SELECT 2
#define BUTTON_START 3
#define BUTTON_UP 4
#define BUTTON_DOWN 5
#define BUTTON_LEFT 6
#define BUTTON_RIGHT 7
void inputInit();
void inputClear();
uint8_t inputGet8(uint16_t addr);
void inputSet8(uint16_t addr, uint8_t in);
bool inputAny();
#endif