chore: initial commit

This commit is contained in:
fallenoak 2023-01-02 13:17:18 -06:00
commit 70b00c5c38
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
965 changed files with 264882 additions and 0 deletions

40
src/event/CEvent.cpp Normal file
View file

@ -0,0 +1,40 @@
#include "event/CEvent.hpp"
#include "gx/Coordinate.hpp"
CCharEvent& CCharEvent::operator=(const EVENT_DATA_CHAR& data) {
this->ch = data.ch;
this->metaKeyState = data.metaKeyState;
this->repeat = data.repeat;
return *this;
}
CKeyEvent& CKeyEvent::operator=(const EVENT_DATA_KEY& data) {
this->key = data.key;
this->metaKeyState = data.metaKeyState;
this->repeat = data.repeat;
this->time = data.time;
return *this;
}
CMouseEvent& CMouseEvent::operator=(const EVENT_DATA_MOUSE& data) {
this->mode = data.mode;
this->button = data.button;
this->buttonState = data.buttonState;
this->metaKeyState = data.metaKeyState;
this->flags = data.flags;
this->time = data.time;
this->wheelDistance = data.wheelDistance;
NDCToDDC(data.x, data.y, &this->x, &this->y);
return *this;
}
CSizeEvent& CSizeEvent::operator=(const EVENT_DATA_SIZE& data) {
this->w = data.w;
this->h = data.h;
return *this;
}