From c223b658c204262e6e631e3797cc904dddb0ad85 Mon Sep 17 00:00:00 2001 From: Crayon Date: Fri, 11 Aug 2023 21:27:10 -0400 Subject: [PATCH] Remove code for emulated buttons --- CHANGELOG.md | 4 ++++ source/main.c | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ebe03fc..c6c4579 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/source/main.c b/source/main.c index 3ec6384..39b4ec7 100644 --- a/source/main.c +++ b/source/main.c @@ -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; @@ -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);