xinput_gamepad 0.0.8 copy "xinput_gamepad: ^0.0.8" to clipboard
xinput_gamepad: ^0.0.8 copied to clipboard

PlatformWindows
outdated

Add support to XInput controllers.

3
likes
120/ 160
pub points
63%
popularity

We analyzed this package 3 days ago, and awarded it 120 pub points (of a possible 160):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/LuanRoger/xinput_gamepad/issues was unreachable. Make sure that the website is reachable via HEAD requests.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

62 out of 65 API elements (95.4 %) have documentation comments.

Some symbols that are missing documentation: xinput_gamepad, xinput_gamepad.Controller.batteryInformation, xinput_gamepad.Controller.capababilities.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Windows

These platforms are not supported:

Package does not support platform `Android`.

Because:

  • package:xinput_gamepad/xinput_gamepad.dart that declares support for platforms: Windows.
Package does not support platform `iOS`.

Because:

  • package:xinput_gamepad/xinput_gamepad.dart that declares support for platforms: Windows.
Package does not support platform `Linux`.

Because:

  • package:xinput_gamepad/xinput_gamepad.dart that declares support for platforms: Windows.
Package does not support platform `macOS`.

Because:

  • package:xinput_gamepad/xinput_gamepad.dart that declares support for platforms: Windows.
Package does not support platform `Web`.

Because:

  • package:xinput_gamepad/xinput_gamepad.dart that declares support for platforms: Windows.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:xinput_gamepad/xinput_gamepad.dart that imports:
  • package:xinput_gamepad/src/virtual_controllers/virtual_cursor.dart that imports:
  • package:xinput_gamepad/src/utils/bitmask_converters/mouse_button_bitmask_converter.dart that imports:
  • package:win32/win32.dart that imports:
  • package:win32/src/winrt/userdatapaths.dart that imports:
  • package:win32/src/winrt_helpers.dart that imports:
  • package:win32/src/utils.dart that imports:
  • package:win32/src/user32.dart that imports:
  • package:win32/src/structs.g.dart that imports:
  • package:win32/src/structs.dart that imports:
  • package:win32/src/constants.dart that imports:
  • package:ffi/ffi.dart that imports:
  • package:ffi/src/utf16.dart that imports:
  • dart:ffi

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
30 / 50trigger folding of the section

30/50 points: code has no errors, warnings, lints, or formatting issues

Found 10 issues. Showing the first 2:

WARNING: Unused import: 'package:ffi/ffi.dart'.

lib/src/gamepad/controller.dart:4:8

  ╷
4 │ import 'package:ffi/ffi.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/gamepad/controller.dart

/tmp/pana_ZQGMFF/lib/src/enums/buttons_mode.dart doesn't match the Dart formatter.

To format your files run: dart format .

failed
Support up-to-date dependencies
30 / 40trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
ffi ^1.1.0 1.2.1 2.1.3
win32 ^2.4.1 2.6.1 5.8.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^1.1.0` on ffi does not support the stable version `2.0.0`.

Try running dart pub upgrade --major-versions ffi to update the constraint.

The constraint `^2.4.1` on win32 does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions win32 to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.15, Dart 3.5.4.

Check the analysis log for details.

3
likes
120
pub points
63%
popularity

Publisher

unverified uploader

Add support to XInput controllers.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

ffi, win32

More

Packages that depend on xinput_gamepad