WIP: Add keyboard

This commit is contained in:
Pk11
2021-08-28 20:54:18 -05:00
parent 45eb4f7894
commit 2d75edbc92
3 changed files with 134 additions and 0 deletions
+5
View File
@@ -28,6 +28,7 @@
#define _UNIVERSAL_CORE_STRUCTS_HPP
#include <string>
#include <3ds/services/hid.h>
class Structs {
public:
@@ -36,6 +37,10 @@ public:
int y;
int w;
int h;
bool Touched(const touchPosition &T) const {
return (T.px >= this->x && T.px <= (this->x + this->w)) && (T.py >= this->y && T.py <= (this->y + this->h));
};
};
struct Key {