mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 23:40:02 +01:00
First working implementation of ActionManager, but incomplete.
This commit is contained in:
@@ -33,11 +33,13 @@ using namespace std;
|
||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
#include <stb_image_write.h>
|
||||
|
||||
#include "UserInterfaceManager.h"
|
||||
|
||||
#include "defines.h"
|
||||
#include "Log.h"
|
||||
#include "SystemToolkit.h"
|
||||
#include "UserInterfaceManager.h"
|
||||
#include "RenderingManager.h"
|
||||
#include "ActionManager.h"
|
||||
#include "Resource.h"
|
||||
#include "FileDialog.h"
|
||||
#include "Settings.h"
|
||||
@@ -289,6 +291,12 @@ void UserInterface::handleKeyboard()
|
||||
else
|
||||
Mixer::manager().session()->addRecorder(new VideoRecorder);
|
||||
}
|
||||
else if (ImGui::IsKeyPressed( GLFW_KEY_Z )) {
|
||||
if (shift_modifier_active)
|
||||
Action::manager().redo();
|
||||
else
|
||||
Action::manager().undo();
|
||||
}
|
||||
|
||||
}
|
||||
// No CTRL modifier
|
||||
|
||||
Reference in New Issue
Block a user