Very WIP: Add keyboard

This commit is contained in:
Pk11
2021-08-28 20:54:11 -05:00
parent a80633f316
commit c32bb5dd6d
8 changed files with 861 additions and 0 deletions
+6
View File
@@ -28,6 +28,8 @@
#define _UNIVERSAL_CORE_STRUCTS_HPP
#include <string>
#include <nds/ndstypes.h>
#include <nds/touch.h>
class Structs {
public:
@@ -36,6 +38,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 {