mirror of
https://github.com/games-on-whales/inputtino.git
synced 2026-10-16 05:12:03 +00:00
[PR #18] [MERGED] Rust fixes #28
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/inputtino#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/inputtino/pull/18
Author: @hgaiser
Created: 1/12/2025
Status: ✅ Merged
Merged: 3/3/2025
Merged by: @ABeltramo
Base:
stable← Head:rust-fixes📝 Commits (10+)
28d3fe7feat: better Rust bindings, properly wrapped mouse639ceccfix: absolute mouse, remove hardcoded namef450266fix: absolute mouse, remove hardcoded namef812746feat: completed Rust mouse API + testsd216136feat: completed Rust keyboard API + tests264fe97feat: added pkgconfig configurationda41b6bfeat: allow Rust build when using the shared libraryaa3f1fdfeat: added basic Dockerfile for compiling from scratch41314dcfeat: added xbox joypad, separated c_bindingse3e74fefeat: added switch joypad📊 Changes
36 files changed (+1687 additions, -142 deletions)
View changed files
📝
.dockerignore(+5 -0)➕
.github/workflows/rust.yml(+40 -0)📝
CMakeLists.txt(+7 -0)📝
README.md(+29 -1)📝
bindings/rust/Cargo.toml(+6 -15)➖
bindings/rust/build.rs(+0 -64)➕
bindings/rust/inputtino-sys/.dockerignore(+1 -0)➕
bindings/rust/inputtino-sys/Cargo.toml(+12 -0)➕
bindings/rust/inputtino-sys/build.rs(+46 -0)➕
bindings/rust/inputtino-sys/src/lib.rs(+5 -0)📝
bindings/rust/inputtino-sys/wrapper.h(+0 -0)➕
bindings/rust/inputtino/.dockerignore(+1 -0)➕
bindings/rust/inputtino/Cargo.toml(+18 -0)➕
bindings/rust/inputtino/examples/keyboard.rs(+33 -0)➕
bindings/rust/inputtino/examples/mouse.rs(+17 -0)➕
bindings/rust/inputtino/src/common.rs(+113 -0)➕
bindings/rust/inputtino/src/error.rs(+15 -0)➕
bindings/rust/inputtino/src/joypad.rs(+74 -0)➕
bindings/rust/inputtino/src/joypad_nintendo.rs(+135 -0)➕
bindings/rust/inputtino/src/joypad_ps5.rs(+204 -0)...and 16 more files
📄 Description
This PR does the following:
stablebranch.inputtino, instead ofinputtino_rs.Inputtinoprefixes in the Rust binding.Joypadenum that is similar toJoypadin the C++ API.impl Sendfor Rust binding objects.inputtino_joypad_ps5_set_ledtoinputtino_joypad_ps5_set_on_led(since it sets a callback, it doesn't set the LED like the name suggested). This is the only change that changes any of the other APIs.The tests don't pass currently, but this was already the case before I made any changes. I do still want to look into that.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.