-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
199 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#pragma once | ||
#include "utils.hpp" | ||
|
||
extern rec_timer REC_TIMER; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
#pragma once | ||
#include <vector> | ||
#include <SDL3/SDL.h> | ||
|
||
|
||
bool initialize_rec_source(); | ||
#include <fstream> | ||
|
||
class gamepad_manager | ||
{ | ||
private: | ||
std::vector<SDL_Gamepad*> m_gamepads; | ||
std::ofstream m_file; | ||
public: | ||
gamepad_manager(/* args */); | ||
gamepad_manager(); | ||
~gamepad_manager(); | ||
void init_gamepads(); | ||
void add_gamepad(SDL_JoystickID joystickid); | ||
void loop(); | ||
int get_gamepad_idx(SDL_JoystickID joystickid); | ||
void remove_gamepad(SDL_JoystickID joystickid); | ||
int get_gamepad_idx(SDL_JoystickID joystickid); | ||
void loop(); | ||
SDL_Gamepad* active_gamepad(); | ||
void setup_file(); | ||
void save_gamepad_state(); | ||
}; | ||
|
||
bool initialize_rec_source(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.