mirror of
https://github.com/ppy/osu.git
synced 2025-03-06 19:47:19 +08:00
Merge branch 'master' into more-taiko-relative-sizings
This commit is contained in:
commit
f587fe91d2
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@ -11,7 +11,7 @@
|
|||||||
"preLaunchTask": "build",
|
"preLaunchTask": "build",
|
||||||
"runtimeExecutable": null,
|
"runtimeExecutable": null,
|
||||||
"env": {},
|
"env": {},
|
||||||
"externalConsole": false
|
"console": "internalConsole"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Launch Desktop",
|
"name": "Launch Desktop",
|
||||||
@ -23,7 +23,7 @@
|
|||||||
"preLaunchTask": "build",
|
"preLaunchTask": "build",
|
||||||
"runtimeExecutable": null,
|
"runtimeExecutable": null,
|
||||||
"env": {},
|
"env": {},
|
||||||
"externalConsole": false
|
"console": "internalConsole"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Attach",
|
"name": "Attach",
|
||||||
|
24
.vscode/tasks.json
vendored
24
.vscode/tasks.json
vendored
@ -2,25 +2,23 @@
|
|||||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
// for the documentation about the tasks.json format
|
// for the documentation about the tasks.json format
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"windows": {
|
|
||||||
"command": "msbuild"
|
|
||||||
},
|
|
||||||
"linux": {
|
|
||||||
"command": "xbuild"
|
|
||||||
},
|
|
||||||
"args": [
|
|
||||||
// Ask msbuild to generate full paths for file names.
|
|
||||||
"/property:GenerateFullPaths=true"
|
|
||||||
],
|
|
||||||
"taskSelector": "/t:",
|
"taskSelector": "/t:",
|
||||||
"showOutput": "silent",
|
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"taskName": "build",
|
"taskName": "build",
|
||||||
// Show the output window only if unrecognized errors occur.
|
"isShellCommand": true,
|
||||||
"showOutput": "silent",
|
"showOutput": "silent",
|
||||||
|
"command": "xbuild",
|
||||||
|
"windows": {
|
||||||
|
"command": "msbuild"
|
||||||
|
},
|
||||||
|
"args": [
|
||||||
|
// Ask msbuild to generate full paths for file names.
|
||||||
|
"/property:GenerateFullPaths=true"
|
||||||
|
],
|
||||||
// Use the standard MS compiler pattern to detect errors, warnings and infos
|
// Use the standard MS compiler pattern to detect errors, warnings and infos
|
||||||
"problemMatcher": "$msCompile"
|
"problemMatcher": "$msCompile",
|
||||||
|
"isBuildCommand": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -42,14 +42,14 @@ namespace osu.Game.Modes.Osu
|
|||||||
{
|
{
|
||||||
if (mouseDisabled.Value)
|
if (mouseDisabled.Value)
|
||||||
{
|
{
|
||||||
mouse.PressedButtons.Remove(MouseButton.Left);
|
mouse.SetPressed(MouseButton.Left, false);
|
||||||
mouse.PressedButtons.Remove(MouseButton.Right);
|
mouse.SetPressed(MouseButton.Right, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (leftViaKeyboard)
|
if (leftViaKeyboard)
|
||||||
mouse.PressedButtons.Add(MouseButton.Left);
|
mouse.SetPressed(MouseButton.Left, true);
|
||||||
if (rightViaKeyboard)
|
if (rightViaKeyboard)
|
||||||
mouse.PressedButtons.Add(MouseButton.Right);
|
mouse.SetPressed(MouseButton.Right, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ namespace osu.Game.Modes.Replays
|
|||||||
public ReplayMouseState(Vector2 position, IEnumerable<MouseButton> list)
|
public ReplayMouseState(Vector2 position, IEnumerable<MouseButton> list)
|
||||||
{
|
{
|
||||||
Position = position;
|
Position = position;
|
||||||
list.ForEach(b => PressedButtons.Add(b));
|
list.ForEach(b => SetPressed(b, true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user