added camera rotation to the map editor

This commit is contained in:
devZoGok
2022-12-29 15:27:32 +02:00
parent d3b7b88768
commit 67493df340
3 changed files with 14 additions and 3 deletions
+6
View File
@@ -91,12 +91,18 @@ namespace battleship{
}
void MapEditorAppState::onAttached(){
AbstractAppState::onAttached();
mapEditor = new MapEditor(mapName, mapSize);
}
void MapEditorAppState::onDettached(){}
void MapEditorAppState::onAction(int bind, bool isPressed){
switch((Bind)bind){
case Bind::LOOK_AROUND:
CameraController::getSingleton()->setLookingAround(isPressed);
break;
}
}
void MapEditorAppState::onAnalog(int bind, float strength){