2016-02-13 17:29:56 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2019-04-17 11:58:54 -03:00
|
|
|
#include "hid_map.h"
|
|
|
|
|
2017-03-01 17:03:27 +01:00
|
|
|
// see: http://3dbrew.org/wiki/CONFIG9_Registers
|
|
|
|
// see: http://3dbrew.org/wiki/EMMC_Registers
|
2019-04-18 16:39:45 -03:00
|
|
|
|
2019-04-17 11:58:54 -03:00
|
|
|
u32 HID_ReadState(void);
|
2019-04-18 16:39:45 -03:00
|
|
|
u32 HID_ReadRawTouchState(void);
|
2019-04-17 11:58:54 -03:00
|
|
|
|
2017-01-16 01:56:04 +01:00
|
|
|
#define CART_STATE (~(*(volatile u8*)0x10000010) & 0x1)
|
2017-03-01 17:03:27 +01:00
|
|
|
#define SD_STATE ((*(volatile u16*)0x1000601C) & (0x1<<5))
|
2016-10-17 23:45:22 +02:00
|
|
|
|
2017-08-04 02:08:56 +02:00
|
|
|
u32 InputWait(u32 timeout_sec);
|
2016-10-17 23:45:22 +02:00
|
|
|
bool CheckButton(u32 button);
|
2018-04-25 15:25:07 +02:00
|
|
|
|
|
|
|
void ButtonToString(u32 button, char* str);
|
|
|
|
u32 StringToButton(char* str);
|