mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
position and rotation adjustment value snap mode in scenery editor, position adjustment for memory cells in scenery editor
This commit is contained in:
@@ -105,6 +105,13 @@ ui_layer::on_key( int const Key, int const Action ) {
|
||||
}
|
||||
|
||||
if( Action == GLFW_RELEASE ) { return true; } // recognized, but ignored
|
||||
|
||||
EditorModeFlag = ( Key == GLFW_KEY_F11 );
|
||||
if( ( true == EditorModeFlag )
|
||||
&& ( false == Global.ControlPicking ) ) {
|
||||
glfwSetInputMode( m_window, GLFW_CURSOR, GLFW_CURSOR_NORMAL );
|
||||
Global.ControlPicking = true;
|
||||
}
|
||||
}
|
||||
|
||||
default: { // everything else
|
||||
@@ -243,8 +250,6 @@ ui_layer::update() {
|
||||
"" ) );
|
||||
}
|
||||
|
||||
EditorModeFlag = ( Global.iTextMode == GLFW_KEY_F11 );
|
||||
|
||||
switch( Global.iTextMode ) {
|
||||
|
||||
case( GLFW_KEY_F1 ) : {
|
||||
|
||||
Reference in New Issue
Block a user