1 class Utility { 2 public: 3 //utility.cpp 4 void inputEvent(uint16_t scancode); 5 void showMessage(const char *message); 6 void updateSystemState(); 7 void acquireMouse(); 8 void unacquireMouse(); 9 10 void updateAvSync(); 11 void updateVideoMode(); 12 void updateColorFilter(); 13 void updatePixelShader(); 14 void updateHardwareFilter(); 15 void updateSoftwareFilter(); 16 void updateEmulationSpeed(); 17 void updateControllers(); 18 19 //system-state.cpp 20 enum system_state_t { LoadCartridge, UnloadCartridge, PowerOn, PowerOff, PowerCycle, Reset }; 21 void modifySystemState(system_state_t state); 22 23 //window.cpp 24 void updateFullscreenState(); 25 void constrainSize(unsigned &x, unsigned &y, unsigned max); 26 void resizeMainWindow(); 27 void toggleSynchronizeVideo(); 28 void toggleSynchronizeAudio(); 29 void setNtscMode(); 30 void setPalMode(); 31 void toggleSmoothVideoOutput(); 32 void toggleAspectCorrection(); 33 void setScale(unsigned); 34 void toggleFullscreen(); 35 void toggleMenubar(); 36 void toggleStatusbar(); 37 }; 38 39 extern Utility utility; 40