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
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ void pbf_press_button(ProControllerContext& context, Button button, Milliseconds
void pbf_press_dpad(ProControllerContext& context, DpadPosition position, Milliseconds hold, Milliseconds release){
ssf_press_dpad(context, position, hold + release, hold, 0ms);
}
void pbf_move_left_joystick_old(ProControllerContext& context, uint8_t x, uint8_t y, Milliseconds hold, Milliseconds release){
ssf_press_left_joystick_old(context, x, y, hold + release, hold, 0ms);
}
void pbf_move_left_joystick(ProControllerContext& context, const JoystickPosition& position, Milliseconds hold, Milliseconds release){
ssf_press_left_joystick(context, position, hold + release, hold, 0ms);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ void pbf_press_dpad (ProControllerContext& context, DpadPosition position, M
// y = 255 : down
// Example: move the joystick fully left: (x, y) = (0, 128)
// move the joystick upper-right: (x, y) = (255, 0)
void pbf_move_left_joystick_old (ProControllerContext& context, uint8_t x, uint8_t y, Milliseconds hold, Milliseconds release);
void pbf_move_left_joystick (ProControllerContext& context, const JoystickPosition& position, Milliseconds hold, Milliseconds release);

// Move right joystick towards a 2D direction. Hold the direction for `hold_ticks`, then release it for `release_ticks`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,33 +36,6 @@ void ssf_press_dpad(
context->issue_dpad(&context, delay, hold, cool, position);
}

void ssf_press_left_joystick_old(
ProControllerContext& context,
uint8_t x, uint8_t y,
uint16_t delay, uint16_t hold, uint8_t cool
){
context->issue_left_joystick(
&context,
delay*8ms, hold*8ms, cool*8ms,
{
JoystickTools::linear_u8_to_float(x),
-JoystickTools::linear_u8_to_float(y)
}
);
}
void ssf_press_left_joystick_old(
ProControllerContext& context,
uint8_t x, uint8_t y,
Milliseconds delay, Milliseconds hold, Milliseconds cool
){
context->issue_left_joystick(
&context, delay, hold, cool,
{
JoystickTools::linear_u8_to_float(x),
-JoystickTools::linear_u8_to_float(y)
}
);
}
void ssf_press_left_joystick(
ProControllerContext& context,
const JoystickPosition& position,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ void ssf_press_dpad(
);


void ssf_press_left_joystick_old(
ProControllerContext& context,
uint8_t x, uint8_t y,
uint16_t delay, uint16_t hold, uint8_t cool = 0
);
void ssf_press_left_joystick_old(
ProControllerContext& context,
uint8_t x, uint8_t y,
Milliseconds delay, Milliseconds hold, Milliseconds cool = 0ms
);
void ssf_press_left_joystick(
ProControllerContext& context,
const JoystickPosition& position,
Expand Down