so, im VERY new to c++, but from all ive seen, this code should work;
include "vex.h"
using namespace vex;
vex::controller Controller1;
void onPress(){
Brain.Screen.print("printed");
};
Controller1.ButtonA.pressed(onPress);
int main() {}
but, it errors “unknown type Controller1”. i have been messing with ti for about 30 minutes and cannot find a fix.