mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
- circle pad simulates dpad keys (up, right, down, left) - raw touchscreen data is provided but currently unused - added a simple shared memory region thing - fixed the 10ms delay to be _after_ the backlights are turned on, thanks to profi again as always, other stuff I probably forgot about
21 lines
466 B
C
21 lines
466 B
C
#pragma once
|
|
|
|
#include "common.h"
|
|
|
|
#include "hid_map.h"
|
|
|
|
// see: http://3dbrew.org/wiki/CONFIG9_Registers
|
|
// see: http://3dbrew.org/wiki/EMMC_Registers
|
|
|
|
u32 HID_ReadState(void);
|
|
u32 HID_ReadRawTouchState(void);
|
|
|
|
#define CART_STATE (~(*(volatile u8*)0x10000010) & 0x1)
|
|
#define SD_STATE ((*(volatile u16*)0x1000601C) & (0x1<<5))
|
|
|
|
u32 InputWait(u32 timeout_sec);
|
|
bool CheckButton(u32 button);
|
|
|
|
void ButtonToString(u32 button, char* str);
|
|
u32 StringToButton(char* str);
|