Cleaning Up
When the game has ended, a GAPI application should release the buttons by callingint GXCloseInput();
In addition, the display should release a call to
int GXCloseDisplay();
This function instructs the GAPI DLL to free any resources it was maintaining to support the frame buffer access of the application.