Skip to content

Commit 487b5ea

Browse files
committed
Remove old controller state joystick API.
1 parent f40b58a commit 487b5ea

File tree

2 files changed

+0
-64
lines changed

2 files changed

+0
-64
lines changed

SerialPrograms/Source/NintendoSwitch/Commands/NintendoSwitch_Commands_PushButtons.cpp

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -75,52 +75,6 @@ void grip_menu_connect_go_home(ProControllerContext& context){
7575
}
7676

7777

78-
void pbf_controller_state(
79-
ProControllerContext& context,
80-
Button button,
81-
DpadPosition position,
82-
uint8_t left_x, uint8_t left_y,
83-
uint8_t right_x, uint8_t right_y,
84-
uint16_t ticks
85-
){
86-
context->issue_full_controller_state(
87-
&context,
88-
true,
89-
ticks*8ms,
90-
button, position,
91-
{
92-
JoystickTools::linear_u8_to_float(left_x),
93-
-JoystickTools::linear_u8_to_float(left_y)
94-
},
95-
{
96-
JoystickTools::linear_u8_to_float(right_x),
97-
-JoystickTools::linear_u8_to_float(right_y)
98-
}
99-
);
100-
}
101-
void pbf_controller_state(
102-
ProControllerContext& context,
103-
Button button,
104-
DpadPosition position,
105-
uint8_t left_x, uint8_t left_y,
106-
uint8_t right_x, uint8_t right_y,
107-
Milliseconds duration
108-
){
109-
context->issue_full_controller_state(
110-
&context,
111-
true,
112-
duration,
113-
button, position,
114-
{
115-
JoystickTools::linear_u8_to_float(left_x),
116-
-JoystickTools::linear_u8_to_float(left_y)
117-
},
118-
{
119-
JoystickTools::linear_u8_to_float(right_x),
120-
-JoystickTools::linear_u8_to_float(right_y)
121-
}
122-
);
123-
}
12478
void pbf_controller_state(
12579
ProControllerContext& context,
12680
Button button,

SerialPrograms/Source/NintendoSwitch/Commands/NintendoSwitch_Commands_PushButtons.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -98,24 +98,6 @@ void grip_menu_connect_go_home (ProControllerContext& context);
9898
// button overlapping, you should use ssf_* directly. (though lots of existing
9999
// programs already use this for overlapping)
100100
//
101-
#if 0
102-
void pbf_controller_state(
103-
ProControllerContext& context,
104-
Button button,
105-
DpadPosition position,
106-
uint8_t left_x, uint8_t left_y,
107-
uint8_t right_x, uint8_t right_y,
108-
uint16_t ticks
109-
);
110-
void pbf_controller_state(
111-
ProControllerContext& context,
112-
Button button,
113-
DpadPosition position,
114-
uint8_t left_x, uint8_t left_y,
115-
uint8_t right_x, uint8_t right_y,
116-
Milliseconds duration
117-
);
118-
#endif
119101
void pbf_controller_state(
120102
ProControllerContext& context,
121103
Button button,

0 commit comments

Comments
 (0)