Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Data/Scripts/cam.as
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void Update() {
}
co.velocity = co.velocity * inertia + target_velocity * (1.0f - inertia);
position += co.velocity * time_step;
if(GetInputDown(controller_id, "mouse0") && !co.ignore_mouse_input){
if((GetInputDown(controller_id, "mouse0") || GetInputDown(controller_id, "g")) && !co.ignore_mouse_input){
target_rotation -= GetLookXAxis(controller_id);
target_rotation2 -= GetLookYAxis(controller_id);
}
Expand Down
6 changes: 6 additions & 0 deletions Source/Editors/map_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1657,6 +1657,12 @@ void MapEditor::HandleShortcuts(const LineSegment& mouseray) {
if (KeyCommand::CheckPressed(keyboard, KeyCommand::kToggleHotspotEditing, KIMF_LEVEL_EDITOR_GENERAL)) {
SetTypeEnabled(_hotspot_object, !IsTypeEnabled(_hotspot_object));
}
if (KeyCommand::CheckPressed(keyboard, KeyCommand::kToggleLightEditing, KIMF_LEVEL_EDITOR_GENERAL)) {
bool lights_enabled = !IsTypeEnabled(_dynamic_light_object);
SetTypeEnabled(_dynamic_light_object, lights_enabled);
SetTypeEnabled(_reflection_capture_object, lights_enabled);
SetTypeEnabled(_light_volume_object, lights_enabled);
}
// Handle saves
// This bool is needed because the new default keybind for "save level as"
// is the old "save selected items", so to keep backward/forward compatibility
Expand Down
1 change: 1 addition & 0 deletions Source/UserInput/keycommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ void KeyCommand::Initialize() {
AddPairToHash("toggle_decal_editing", kToggleDecalEditing);
AddPairToHash("toggle_object_editing", kToggleObjectEditing);
AddPairToHash("toggle_hotspot_editing", kToggleHotspotEditing);
AddPairToHash("toggle_light_editing", kToggleLightEditing);
AddPairToHash("open_spawner", kOpenSpawner);
AddPairToHash("save_selected_items", kSaveSelectedItems);
AddPairToHash("save_level", kSaveLevel);
Expand Down
1 change: 1 addition & 0 deletions Source/UserInput/keycommands.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ enum Label {
kToggleDecalEditing,
kToggleObjectEditing,
kToggleHotspotEditing,
kToggleLightEditing,
kOpenSpawner,
kSaveSelectedItems,
kSaveLevel,
Expand Down