mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
added camera rotation to the map editor
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user