Sample

The NvGamepad sample is an extremely simple application that compiles for both Windows and Android from a single main source file. On both platforms, it uses as little code as possible to demonstrate how to feed and read the gamepad library.

Windows Development:

On Windows, the application reads the gamepad and writes a text report of the buttons and axes to the window. It repaints the window on each change.

Android Development:

On Android, the application reads the gamepad and writes the text report of the buttons and axes to the Logcat. Nothing is shown on the screen, since the application uses NativeActivity (like most Android games), and adding screen writing would have added a significant amount of code that was not of value to the demonstration.

 

 


NVIDIA® GameWorks™ Documentation Rev. 1.0.220830 ©2014-2022. NVIDIA Corporation and affiliates. All Rights Reserved.