Skip to content

Commit

Permalink
Remove code for emulated buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Crayon2000 committed Aug 12, 2023
1 parent 3c54cae commit c223b65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## [Unreleased]

- Remove code for emulated buttons.

## [1.2.0] - 2023-05-12

- Add Aroma .wuhb file to artefact.
Expand Down
9 changes: 0 additions & 9 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,6 @@ int main(int argc, char **argv)

uint16_t holdTime = 0;

float rot_deg;
float xy_deg;
float radius;
VPADGetCrossStickEmulationParamsL(VPAD_CHAN_0, &rot_deg, &xy_deg, &radius);

while(running == true) {
int32_t kpad_error1 = -6;
int32_t kpad_error2 = -6;
Expand All @@ -264,10 +259,6 @@ int main(int argc, char **argv)
KPADStatus kpad_data3;
KPADStatus kpad_data4;

// Prevent dead zones with emulated buttons
VPADSetCrossStickEmulationParamsL(VPAD_CHAN_0, -1.0f, xy_deg, radius);
VPADSetCrossStickEmulationParamsR(VPAD_CHAN_0, 1.0f, xy_deg, radius);

// Read the VPAD
VPADRead(VPAD_CHAN_0, &vpad_data, 1, &error);

Expand Down

0 comments on commit c223b65

Please sign in to comment.