1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-08-18 12:39:52 +00:00

Preparations to get rid of DSQ::inputMode -- Pass device to action() methods.

This commit is contained in:
fgenesis 2017-01-14 22:53:20 +01:00
parent e8a4b58e80
commit 9d80077754
28 changed files with 80 additions and 91 deletions

View file

@ -1849,7 +1849,7 @@ void SceneEditor::removeEntity()
void SceneEditor::placeAvatar()
{
dsq->game->avatar->position = dsq->getGameCursorPosition();
dsq->game->action(ACTION_PLACE_AVATAR, 0, -1);
dsq->game->action(ACTION_PLACE_AVATAR, 0, -1, INPUT_NODEVICE);
}
void SceneEditor::scaleElementUp()
@ -1956,7 +1956,7 @@ void SceneEditor::updateMultiSelect()
}
}
void SceneEditor::action(int id, int state, int source)
void SceneEditor::action(int id, int state, int source, InputDevice device)
{
if (core->getCtrlState() && editingElement)
{