C++ Controller issue

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(){




int main() {}

but, it errors “unknown type Controller1”. i have been messing with ti for about 30 minutes and cannot find a fix.

It’s not located in any function. As a result, it won’t run. You would have to run the command in the int main function.

1 Like