Browse Source

clang

pull/8327/head
Eric Robinson 4 months ago
parent
commit
ecf7bbde22
  1. 16
      Source/diablo.cpp

16
Source/diablo.cpp

@ -2339,49 +2339,49 @@ void InitPadmapActions()
N_("Automap Move Up"), N_("Automap Move Up"),
N_("Moves the automap up when active."), N_("Moves the automap up when active."),
ControllerButton_NONE, ControllerButton_NONE,
[] { }); [] {});
options.Padmapper.AddAction( options.Padmapper.AddAction(
"AutomapMoveDown", "AutomapMoveDown",
N_("Automap Move Down"), N_("Automap Move Down"),
N_("Moves the automap down when active."), N_("Moves the automap down when active."),
ControllerButton_NONE, ControllerButton_NONE,
[] { }); [] {});
options.Padmapper.AddAction( options.Padmapper.AddAction(
"AutomapMoveLeft", "AutomapMoveLeft",
N_("Automap Move Left"), N_("Automap Move Left"),
N_("Moves the automap left when active."), N_("Moves the automap left when active."),
ControllerButton_NONE, ControllerButton_NONE,
[] { }); [] {});
options.Padmapper.AddAction( options.Padmapper.AddAction(
"AutomapMoveRight", "AutomapMoveRight",
N_("Automap Move Right"), N_("Automap Move Right"),
N_("Moves the automap right when active."), N_("Moves the automap right when active."),
ControllerButton_NONE, ControllerButton_NONE,
[] { }); [] {});
options.Padmapper.AddAction( options.Padmapper.AddAction(
"MouseUp", "MouseUp",
N_("Move mouse up"), N_("Move mouse up"),
N_("Simulates upward mouse movement."), N_("Simulates upward mouse movement."),
{ ControllerButton_BUTTON_BACK, ControllerButton_BUTTON_DPAD_UP }, { ControllerButton_BUTTON_BACK, ControllerButton_BUTTON_DPAD_UP },
[] { }); [] {});
options.Padmapper.AddAction( options.Padmapper.AddAction(
"MouseDown", "MouseDown",
N_("Move mouse down"), N_("Move mouse down"),
N_("Simulates downward mouse movement."), N_("Simulates downward mouse movement."),
{ ControllerButton_BUTTON_BACK, ControllerButton_BUTTON_DPAD_DOWN }, { ControllerButton_BUTTON_BACK, ControllerButton_BUTTON_DPAD_DOWN },
[] { }); [] {});
options.Padmapper.AddAction( options.Padmapper.AddAction(
"MouseLeft", "MouseLeft",
N_("Move mouse left"), N_("Move mouse left"),
N_("Simulates leftward mouse movement."), N_("Simulates leftward mouse movement."),
{ ControllerButton_BUTTON_BACK, ControllerButton_BUTTON_DPAD_LEFT }, { ControllerButton_BUTTON_BACK, ControllerButton_BUTTON_DPAD_LEFT },
[] { }); [] {});
options.Padmapper.AddAction( options.Padmapper.AddAction(
"MouseRight", "MouseRight",
N_("Move mouse right"), N_("Move mouse right"),
N_("Simulates rightward mouse movement."), N_("Simulates rightward mouse movement."),
{ ControllerButton_BUTTON_BACK, ControllerButton_BUTTON_DPAD_RIGHT }, { ControllerButton_BUTTON_BACK, ControllerButton_BUTTON_DPAD_RIGHT },
[] { }); [] {});
auto leftMouseDown = [] { auto leftMouseDown = [] {
const ControllerButtonCombo standGroundCombo = GetOptions().Padmapper.ButtonComboForAction("StandGround"); const ControllerButtonCombo standGroundCombo = GetOptions().Padmapper.ButtonComboForAction("StandGround");
const bool standGround = StandToggle || IsControllerButtonComboPressed(standGroundCombo); const bool standGround = StandToggle || IsControllerButtonComboPressed(standGroundCombo);

Loading…
Cancel
Save