mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-19 09:54:54 +00:00
core: Library cleanup (#1631)
* core: Split error codes into separate files * Reduces build times and is cleaner * core: Bring structs and enums to codebase style * core: More style changes
This commit is contained in:
parent
3d0aacd43d
commit
5b6e0ab238
114 changed files with 2158 additions and 2509 deletions
|
@ -46,36 +46,33 @@ public:
|
|||
std::string_view window_title);
|
||||
~WindowSDL();
|
||||
|
||||
s32 getWidth() const {
|
||||
s32 GetWidth() const {
|
||||
return width;
|
||||
}
|
||||
|
||||
s32 getHeight() const {
|
||||
s32 GetHeight() const {
|
||||
return height;
|
||||
}
|
||||
|
||||
bool isOpen() const {
|
||||
bool IsOpen() const {
|
||||
return is_open;
|
||||
}
|
||||
|
||||
[[nodiscard]] SDL_Window* GetSdlWindow() const {
|
||||
[[nodiscard]] SDL_Window* GetSDLWindow() const {
|
||||
return window;
|
||||
}
|
||||
|
||||
WindowSystemInfo getWindowInfo() const {
|
||||
WindowSystemInfo GetWindowInfo() const {
|
||||
return window_info;
|
||||
}
|
||||
|
||||
void waitEvent();
|
||||
|
||||
void initTimers();
|
||||
void WaitEvent();
|
||||
void InitTimers();
|
||||
|
||||
private:
|
||||
void onResize();
|
||||
void onKeyPress(const SDL_Event* event);
|
||||
void onGamepadEvent(const SDL_Event* event);
|
||||
|
||||
int sdlGamepadToOrbisButton(u8 button);
|
||||
void OnResize();
|
||||
void OnKeyPress(const SDL_Event* event);
|
||||
void OnGamepadEvent(const SDL_Event* event);
|
||||
|
||||
private:
|
||||
s32 width;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue