Skip to content

Utilized `hidapi` for JoyCon and Pro Controller without `GLFW`.

Notifications You must be signed in to change notification settings

KaiseiYokoyama/JoyConKt

Repository files navigation

JoyConKt

Utilized hidapi for JoyCon and Pro Controller.

build.gradle.kts

allprojects {
    repositories {
        maven("https://jitpack.io")
    }
}

dependencies {
    implementation("org.hid4java:hid4java:0.7.0")
    implementation("com.github.KaiseiYokoyama:JoyConKt:v0.2.0")
}

Unique Point

JoyConKt does not include GLFW.

GLFW is the famous library used for GUI framework. It also provides gamepad support. Some GUI framework include GLFW does not provide gamepad support. A library for gamepad support is required in these case. However, some gamepad libraries like LWJGL include GLFW. It causes the failure of glfwInit().

JoyConKt does not include GLFW so that it can be used along with GUI frameworks.

Features

  • Detect connection and disconnection of controllers: Manager
  • Receive input status includes IMU at 120 Hz or 60 Hz: StandardFullMode
  • Rumble: Controller.rumble(), Rumble
  • Set player LEDs: Controller.setPlayerLights(), PlayerLight

Todo

  • Receive input status when changes: NormalMode
  • JoyCon support
  • Dual JoyCon support
  • Calibration support
    • Sticks
    • IMU

Reference

About

Utilized `hidapi` for JoyCon and Pro Controller without `GLFW`.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages