Open topic with navigation
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.
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.
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.211026 ©2014-2021. NVIDIA Corporation and affiliates. All Rights Reserved.