Allow compilation with opengl=off

This commit is contained in:
coiland 2024-04-08 18:11:48 -04:00
parent 428401870b
commit 1c63f61ad7
2 changed files with 58 additions and 38 deletions

View file

@ -15,6 +15,8 @@ class FrontendSDL {
public:
FrontendSDL();
void createOpenGlWindow(const EmulatorConfig& config);
void createVulkanWindow(const EmulatorConfig& config);
bool loadROM(const std::filesystem::path& path);
void run();
u32 getMapping(InputMappings::Scancode scancode) { return keyboardMappings.getMapping(scancode); }
@ -25,7 +27,7 @@ class FrontendSDL {
int gameControllerID;
bool programRunning = true;
// For tracking whether to update gyroscope
// We bind gyro to right click + mouse movement
bool holdingRightClick = false;