dualsense_api 1.0.1 copy "dualsense_api: ^1.0.1" to clipboard
dualsense_api: ^1.0.1 copied to clipboard

Control a Sony DualSense (PS5) controller over USB on macOS via HIDAPI + Dart FFI: read sticks, triggers, buttons, battery and audio jack in real time, and command the lightbar color.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dualsense_api

With Flutter:

 $ flutter pub add dualsense_api

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dualsense_api: ^1.0.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dualsense_api/controllers/dualsense_controller.dart';
import 'package:dualsense_api/dualsense_bindings.dart';
import 'package:dualsense_api/model/dualsense_model.dart';
0
likes
140
points
31
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Control a Sony DualSense (PS5) controller over USB on macOS via HIDAPI + Dart FFI: read sticks, triggers, buttons, battery and audio jack in real time, and command the lightbar color.

Repository (GitHub)
View/report issues

Topics

#ffi #gamepad #hid #macos #desktop

License

MIT (license)

Dependencies

equatable, ffi

More

Packages that depend on dualsense_api