mirror of
https://github.com/DarkStore-3DS/Universal-Core.git
synced 2026-07-03 00:39:23 +00:00
WIP: Add keyboard
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user