3DS: Get input working

This commit is contained in:
Jeffrey Pfau 2014-12-10 03:13:38 -08:00
parent 40d14fe613
commit 57828f6d85
1 changed files with 4 additions and 3 deletions

View File

@ -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);