Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct
- {
- TVexJoysticks upButton;
- TVexJoysticks downButton;
- } myStructType;
- myStructType myStruct;
- while (true)
- {
- myStruct.upButton = Btn8U;
- myStruct.downButton = Btn8D;
- if (vexRT[myStruct.upButton])
- {
- //Do something
- }
- else if (vexRT[myStruct.downButton])
- {
- //Do something different
- }
- else
- {
- //Do nothing
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement