If you’re developing Corona-powered apps for HID-controller-based environments, you might have wished that you can “simulate” the controller input similarly to how you simulate other aspects of your app. Now you can! In today’s guest tutorial, learn how to simulate HID controllers directly in the Corona Simulator.
In a previous tutorial about HID controllers, we showed you how to use Corona SDK to read button inputs from game controllers. In contrast to basic button functionality, analog controls are more complex because they measure an almost infinite number of potential values that must be converted from the analog “infinity” to discrete digital values. Today’s tutorial walks you through the process and includes a full sample project to get you started.