mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-20 14:01:44 +12:00
Hydra core
This commit is contained in:
parent
504c61c779
commit
23636b22fa
8 changed files with 182 additions and 5 deletions
|
@ -114,6 +114,7 @@ class Emulator {
|
|||
void setOutputSize(u32 width, u32 height) { gpu.setOutputSize(width, height); }
|
||||
|
||||
EmulatorConfig& getConfig() { return config; }
|
||||
ServiceManager& getServiceManager() { return kernel.getServiceManager(); }
|
||||
RendererType getRendererType() const { return config.rendererType; }
|
||||
Renderer* getRenderer() { return gpu.getRenderer(); }
|
||||
};
|
||||
|
|
|
@ -83,6 +83,13 @@ namespace Helpers {
|
|||
return false;
|
||||
}
|
||||
|
||||
static constexpr bool isHydraCore() {
|
||||
#ifdef PANDA3DS_HYDRA_CORE
|
||||
return true;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
static void debug_printf(const char* fmt, ...) {
|
||||
if constexpr (buildingInDebugMode()) {
|
||||
std::va_list args;
|
||||
|
|
|
@ -91,6 +91,7 @@ class HIDService {
|
|||
|
||||
void pressKey(u32 mask) { newButtons |= mask; }
|
||||
void releaseKey(u32 mask) { newButtons &= ~mask; }
|
||||
void setKey(u32 mask, bool pressed) { pressed ? pressKey(mask) : releaseKey(mask); }
|
||||
|
||||
u32 getOldButtons() const { return oldButtons; }
|
||||
s16 getCirclepadX() const { return circlePadX; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue