[HID] Implement events

This commit is contained in:
wheremyfoodat 2023-04-29 02:45:21 +03:00
parent 5465eb31c1
commit 6419098851
7 changed files with 34 additions and 15 deletions

View file

@ -31,6 +31,9 @@ void Emulator::run() {
kernel.sendGPUInterrupt(GPUInterrupt::VBlank0);
kernel.sendGPUInterrupt(GPUInterrupt::VBlank1);
// Update inputs in the HID module
kernel.updateInputs();
SDL_Event event;
while (SDL_PollEvent(&event)) {
if (event.type == SDL_QUIT) {