Start work on touchscreen support
This commit is contained in:
parent
815737ce3e
commit
ae88521b32
14 changed files with 171 additions and 76 deletions
|
|
@ -165,6 +165,9 @@ void World::init_client(const std::string& serverFullID) {
|
|||
}
|
||||
|
||||
void World::focus_update() {
|
||||
mousePreviousWorldVec = drawData.cam.c.from_space(main.input.mouse.pos);
|
||||
mouseWorldMove = drawData.cam.c.from_space(main.input.mouse.move);
|
||||
|
||||
connection_update();
|
||||
if(setToDestroy)
|
||||
return;
|
||||
|
|
@ -189,9 +192,6 @@ void World::focus_update() {
|
|||
|
||||
rMan.update();
|
||||
|
||||
mousePreviousWorldVec = drawData.cam.c.from_space(main.input.mouse.pos);
|
||||
mouseWorldMove = drawData.cam.c.from_space(main.input.mouse.move);
|
||||
|
||||
if(main.input.key(InputManager::KEY_UNDO).repeat)
|
||||
undo_with_checks();
|
||||
else if(main.input.key(InputManager::KEY_REDO).repeat)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue