n_gamepad 0.0.1 copy "n_gamepad: ^0.0.1" to clipboard
n_gamepad: ^0.0.1 copied to clipboard

Flutter plugin for listening game controller inputs.

n Gamepad #

A Flutter plugin to listen to game controller inputs.

Usage #

Add the following lines of code to your FlutterActivity in order to override Android's standard input settings for gamepads:

class MainActivity : FlutterActivity() {
    private lateinit var view: View

    override fun onStart() {
        super.onStart()

        view = window.findViewById<ViewGroup>(1).getChildAt(0)
    }

    override fun dispatchKeyEvent(event: KeyEvent?): Boolean {
        return view.dispatchKeyEvent(event)
    }
}

This configuration step is necessary for the proper functioning of the plugin.

For comprehensive documentation on the network capabilities, please refer to the nx Gamepad repository.

2
likes
0
pub points
31%
popularity

Publisher

verified publishervogl.dev

Flutter plugin for listening game controller inputs.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on n_gamepad