mirror of https://github.com/mgba-emu/mgba.git
3DS: Get input working
This commit is contained in:
parent
40d14fe613
commit
57828f6d85
|
@ -42,9 +42,6 @@ int main() {
|
|||
renderer.outputBuffer = videoBuffer;
|
||||
renderer.outputBufferStride = VIDEO_HORIZONTAL_PIXELS;
|
||||
|
||||
gba->keySource = &activeKeys;
|
||||
gba->sync = 0;
|
||||
|
||||
FS_archive sdmcArchive = (FS_archive) {
|
||||
ARCH_SDMC,
|
||||
(FS_path) { PATH_EMPTY, 1, (u8*)"" },
|
||||
|
@ -60,6 +57,9 @@ int main() {
|
|||
ARMSetComponents(cpu, &gba->d, 0, 0);
|
||||
ARMInit(cpu);
|
||||
|
||||
gba->keySource = &activeKeys;
|
||||
gba->sync = 0;
|
||||
|
||||
GBAVideoAssociateRenderer(&gba->video, &renderer.d);
|
||||
|
||||
GBALoadROM(gba, rom, save, 0);
|
||||
|
@ -77,6 +77,7 @@ int main() {
|
|||
gfxSwapBuffersGpu();
|
||||
gspWaitForVBlank();
|
||||
hidScanInput();
|
||||
activeKeys = hidKeysHeld() & 0x3FF;
|
||||
}
|
||||
}
|
||||
inVblank = GBARegisterDISPSTATGetInVblank(gba->video.dispstat);
|
||||
|
|
Loading…
Reference in New Issue