feat(input): assess world objects on right click
Port SmartBox's release-completed sr_Examine gesture through the configurable SelectRight binding. Cancel camera drags at the shared retail three-pixel threshold, then reuse the canonical picker, selection pulse, and appraisal request path without inventing another wire or UI owner. Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
parent
6718ee45a0
commit
5ad32d5753
16 changed files with 394 additions and 13 deletions
|
|
@ -108,6 +108,19 @@ public class KeyBindingsRetailTests
|
|||
Assert.Equal(InputAction.EscapeKey, hit!.Value.Action);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SelectRightIsAReleaseCompletedClick()
|
||||
{
|
||||
var bindings = KeyBindings.RetailDefaults();
|
||||
Binding binding = Assert.Single(bindings.ForAction(InputAction.SelectRight));
|
||||
|
||||
Assert.Equal(1, binding.Chord.Device);
|
||||
Assert.Equal(
|
||||
InputDispatcher.MouseButtonToKey(MouseButton.Right),
|
||||
binding.Chord.Key);
|
||||
Assert.Equal(ActivationType.Click, binding.Activation);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(Key.Delete, InputAction.CombatLowAttack)]
|
||||
[InlineData(Key.End, InputAction.CombatMediumAttack)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue