Difference Between Dinput And Xinput
I just came through two terms while surfing web for my xbox 360. I saw something that describes two forms of inputs and they are dinput and xinput. Will, somebody tells me how these two are different?
I just came through two terms while surfing web for my xbox 360. I saw something that describes two forms of inputs and they are dinput and xinput. Will, somebody tells me how these two are different?
dinput stands for direct input. As of 2010, the XInput API will have restrictions that DirectInput does not respect: XInput only supports next-generation controllers. This is mainly limited to Xbox 360 controllers with even Windows drivers. Windows controllers, joysticks, and exteroception general feedback devices are not supported. XInput supports up to 4 controllers simultaneously. This limitation is often passed on to Windows.
Although only a few computer games require four controllers as of 2010, DirectInput itself is not subject to such a restriction. XInput does not support keyboards, mouse, and mouse. Although Microsoft recommends that you do not use DirectInput for these devices, programmers use DirectInput for these devices. XInput supports most four axes, 10 keys, a pair of triggers, and an 8-way digital pad per controller, compared to DirectInput support for eight-axis, 128-key, and full-range POV.