mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
samples: Update swkbd sample to use VPADChan enum
This commit is contained in:
parent
7ca4ebda05
commit
d66cf4bfd6
@ -1,6 +1,5 @@
|
||||
#include <coreinit/thread.h>
|
||||
#include <coreinit/time.h>
|
||||
#include <coreinit/systeminfo.h>
|
||||
|
||||
#include <whb/proc.h>
|
||||
#include <whb/log.h>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user