Skip to content

Commit

Permalink
Change keybind for range selection
Browse files Browse the repository at this point in the history
  • Loading branch information
setchi committed Oct 21, 2015
1 parent 30249d2 commit 11fd9fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Assets/Scripts/Presenter/NoteCanvas/EditNotesPresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ void Awake()
void Init()
{
var closestNoteAreaOnMouseDownObservable = canvasEvents.NotesRegionOnMouseDownObservable
.Where(_ => !KeyInput.CtrlKey())
.Where(_ => !Input.GetMouseButtonDown(1))
.Where(_ => 0 <= NoteCanvas.ClosestNotePosition.Value.num);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ void Awake()

// Select by dragging
this.UpdateAsObservable()
.Where(_ => KeyInput.CtrlKey())
.Where(_ => Input.GetMouseButtonDown(0))
.Select(_ => Input.mousePosition)
.SelectMany(startPos => this.UpdateAsObservable()
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
| 現在位置を素早く移動する | Ctrl + 左 / 右矢印キー |
| 再生 / 停止 | Space |
| ノーツをすべて選択する | Ctrl + A |
| ノーツを範囲選択する | 譜面をドラッグ |
| ノーツを範囲選択する | Ctrl + 譜面をドラッグ |
| 選択対象をコピーする | Ctrl + C |
| 選択対象を切り取る | Ctrl + X |
| 選択対象を削除する | Delte / Back space |
Expand Down

0 comments on commit 11fd9fc

Please sign in to comment.