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.outputBuffer = videoBuffer;
|
||||||
renderer.outputBufferStride = VIDEO_HORIZONTAL_PIXELS;
|
renderer.outputBufferStride = VIDEO_HORIZONTAL_PIXELS;
|
||||||
|
|
||||||
gba->keySource = &activeKeys;
|
|
||||||
gba->sync = 0;
|
|
||||||
|
|
||||||
FS_archive sdmcArchive = (FS_archive) {
|
FS_archive sdmcArchive = (FS_archive) {
|
||||||
ARCH_SDMC,
|
ARCH_SDMC,
|
||||||
(FS_path) { PATH_EMPTY, 1, (u8*)"" },
|
(FS_path) { PATH_EMPTY, 1, (u8*)"" },
|
||||||
|
@ -60,6 +57,9 @@ int main() {
|
||||||
ARMSetComponents(cpu, &gba->d, 0, 0);
|
ARMSetComponents(cpu, &gba->d, 0, 0);
|
||||||
ARMInit(cpu);
|
ARMInit(cpu);
|
||||||
|
|
||||||
|
gba->keySource = &activeKeys;
|
||||||
|
gba->sync = 0;
|
||||||
|
|
||||||
GBAVideoAssociateRenderer(&gba->video, &renderer.d);
|
GBAVideoAssociateRenderer(&gba->video, &renderer.d);
|
||||||
|
|
||||||
GBALoadROM(gba, rom, save, 0);
|
GBALoadROM(gba, rom, save, 0);
|
||||||
|
@ -77,6 +77,7 @@ int main() {
|
||||||
gfxSwapBuffersGpu();
|
gfxSwapBuffersGpu();
|
||||||
gspWaitForVBlank();
|
gspWaitForVBlank();
|
||||||
hidScanInput();
|
hidScanInput();
|
||||||
|
activeKeys = hidKeysHeld() & 0x3FF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
inVblank = GBARegisterDISPSTATGetInVblank(gba->video.dispstat);
|
inVblank = GBARegisterDISPSTATGetInVblank(gba->video.dispstat);
|
||||||
|
|
Loading…
Reference in New Issue