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
22 lines
343 B
C
Executable File
22 lines
343 B
C
Executable File
#pragma once
|
|
|
|
#include <arm.h>
|
|
|
|
typedef struct {
|
|
u64 hid_state;
|
|
} GlobalSharedMemory;
|
|
|
|
#ifdef ARM9
|
|
#include <pxi.h>
|
|
|
|
static inline const GlobalSharedMemory *ARM_GetSHMEM(void)
|
|
{
|
|
return (const GlobalSharedMemory*)ARM_GetTID();
|
|
}
|
|
|
|
static void ARM_InitSHMEM(void)
|
|
{
|
|
ARM_SetTID(PXI_DoCMD(PXI_GET_SHMEM, NULL, 0));
|
|
}
|
|
#endif
|