Request for basic GCVirtualController example code

Hello,

Could someone post code that shows how to implement GCVirtualController to move a box around the screen?

I've been poking around with GCVirtualController and gotten as far as having the D-pad and A B buttons appear on the display. But how do I make it do anything?

The following article has a link to a GitHub project that moves a sprite around the screen with a virtual controller:

https://checksimgames.com/using-virtual-controllers-in-an-ios-game/

Request for basic GCVirtualController example code
 
 
Q