samples: Update swkbd sample to use VPADChan enum

This commit is contained in:
James Benton 2018-06-18 12:21:43 +01:00
parent 7ca4ebda05
commit d66cf4bfd6
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
#include <coreinit/thread.h>
#include <coreinit/time.h>
#include <coreinit/systeminfo.h>
#include <whb/proc.h>
#include <whb/log.h>

View File

@ -44,8 +44,8 @@ int main(int argc, char **argv)
while (WHBProcIsRunning()) {
// Read vpad for swkbd::Calc
VPADStatus vpadStatus;
VPADRead(0, &vpadStatus, 1, nullptr);
VPADGetTPCalibratedPoint(0, &vpadStatus.tpNormal, &vpadStatus.tpNormal);
VPADRead(VPAD_CHAN_0, &vpadStatus, 1, nullptr);
VPADGetTPCalibratedPoint(VPAD_CHAN_0, &vpadStatus.tpNormal, &vpadStatus.tpNormal);
// Update keyboard
nn::swkbd::ControllerInfo controllerInfo;