implement input iteraction

This commit is contained in:
j3d1 2018-11-06 18:30:21 +01:00
parent c822a75df0
commit 6af3988056
12 changed files with 229 additions and 110 deletions

View file

@ -1,4 +1,5 @@
#include "buttons.h"
#include "example.h"
#include "node.h"
#include "gfx/canvas.h"
@ -14,10 +15,10 @@ void fooValue::render(canvas& c){
c.print(10 , 10, title_);
peng[0] = input[0] ? 'L' : ' ';
peng[1] = input[1] ? 'R' : ' ';
peng[2] = input[2] ? 'U' : ' ';
peng[3] = input[3] ? 'D' : ' ';
peng[0] = input.raw[0] ? 'L' : ' ';
peng[1] = input.raw[1] ? 'R' : ' ';
peng[2] = input.raw[2] ? 'U' : ' ';
peng[3] = input.raw[3] ? 'D' : ' ';
j++;
j %= 10;
peng[4] = 'A' + j;