[PR #11] [CLOSED] Rust bindings #23

Closed
opened 2026-10-15 12:51:22 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/games-on-whales/inputtino/pull/11
Author: @ABeltramo
Created: 8/3/2024
Status: ❌ Closed

Base: stable ← Head: dev-rust


📝 Commits (10+)

  • 2a348ce feat: better Rust bindings, properly wrapped mouse
  • 2394ecf fix: absolute mouse, remove hardcoded name
  • 60ad275 fix: absolute mouse, remove hardcoded name
  • 4c280b6 feat: completed Rust mouse API + tests
  • 1d124d8 feat: completed Rust keyboard API + tests
  • 3a4b6a4 feat: added pkgconfig configuration
  • 5df6e1e feat: allow Rust build when using the shared library
  • 0b57533 feat: added basic Dockerfile for compiling from scratch
  • 7f197ff feat: added xbox joypad, separated c_bindings
  • 866c3c2 feat: added switch joypad

📊 Changes

20 files changed (+1014 additions, -96 deletions)

View changed files

📝 .dockerignore (+4 -0)
📝 CMakeLists.txt (+7 -0)
➕ bindings/rust/.dockerignore (+1 -0)
📝 bindings/rust/Cargo.toml (+12 -1)
📝 bindings/rust/build.rs (+43 -39)
➕ bindings/rust/src/c_bindings.rs (+5 -0)
➕ bindings/rust/src/common.rs (+76 -0)
➕ bindings/rust/src/joypad_switch.rs (+72 -0)
➕ bindings/rust/src/joypad_xbox.rs (+72 -0)
➕ bindings/rust/src/keyboard.rs (+45 -0)
📝 bindings/rust/src/lib.rs (+8 -50)
➕ bindings/rust/src/mouse.rs (+113 -0)
➕ bindings/rust/tests/common/mod.rs (+33 -0)
➕ bindings/rust/tests/joypads.rs (+242 -0)
➕ bindings/rust/tests/keyboard.rs (+61 -0)
➕ bindings/rust/tests/mouse.rs (+125 -0)
➕ docker/Dockerfile (+70 -0)
➕ share/pkgconfig/libinputtino.pc.in (+17 -0)
📝 src/uinput/mouse.cpp (+6 -6)
📝 tests/CMakeLists.txt (+2 -0)

📄 Description

WIP for #3, see tests for how to use it.
TODO:

Wrappers:

  • Mouse
  • Keyboard
  • Trackpad
  • Touchscreen
  • PenTablet
  • XboxOneJoypad
  • SwitchJoypad
  • PS5Joypad

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/games-on-whales/inputtino/pull/11 **Author:** [@ABeltramo](https://github.com/ABeltramo) **Created:** 8/3/2024 **Status:** ❌ Closed **Base:** `stable` ← **Head:** `dev-rust` --- ### 📝 Commits (10+) - [`2a348ce`](https://github.com/games-on-whales/inputtino/commit/2a348ce32d131ebf6b9f45e9f4e9cb960b8397b0) feat: better Rust bindings, properly wrapped mouse - [`2394ecf`](https://github.com/games-on-whales/inputtino/commit/2394ecfa0ce9597a098d056d865665a821438545) fix: absolute mouse, remove hardcoded name - [`60ad275`](https://github.com/games-on-whales/inputtino/commit/60ad2756ff2da8c051979769e8cc16c8e3d56a92) fix: absolute mouse, remove hardcoded name - [`4c280b6`](https://github.com/games-on-whales/inputtino/commit/4c280b630750d3021ccef34701ec85cf2fb0de67) feat: completed Rust mouse API + tests - [`1d124d8`](https://github.com/games-on-whales/inputtino/commit/1d124d8bad7216be9e28056fe93abfe65f6d0d00) feat: completed Rust keyboard API + tests - [`3a4b6a4`](https://github.com/games-on-whales/inputtino/commit/3a4b6a4d1bfe75e0cdd783f8dbb7eb39fe4d5cee) feat: added pkgconfig configuration - [`5df6e1e`](https://github.com/games-on-whales/inputtino/commit/5df6e1e68e0932f9c519a87c7095797f966293d8) feat: allow Rust build when using the shared library - [`0b57533`](https://github.com/games-on-whales/inputtino/commit/0b57533b54832d6e28a5290205ff4bf20028845c) feat: added basic Dockerfile for compiling from scratch - [`7f197ff`](https://github.com/games-on-whales/inputtino/commit/7f197ff13ad9187ee5f0887747773a37630fbd40) feat: added xbox joypad, separated c_bindings - [`866c3c2`](https://github.com/games-on-whales/inputtino/commit/866c3c2760ee007b69bb5782e204e543730ed1c6) feat: added switch joypad ### 📊 Changes **20 files changed** (+1014 additions, -96 deletions) <details> <summary>View changed files</summary> 📝 `.dockerignore` (+4 -0) 📝 `CMakeLists.txt` (+7 -0) ➕ `bindings/rust/.dockerignore` (+1 -0) 📝 `bindings/rust/Cargo.toml` (+12 -1) 📝 `bindings/rust/build.rs` (+43 -39) ➕ `bindings/rust/src/c_bindings.rs` (+5 -0) ➕ `bindings/rust/src/common.rs` (+76 -0) ➕ `bindings/rust/src/joypad_switch.rs` (+72 -0) ➕ `bindings/rust/src/joypad_xbox.rs` (+72 -0) ➕ `bindings/rust/src/keyboard.rs` (+45 -0) 📝 `bindings/rust/src/lib.rs` (+8 -50) ➕ `bindings/rust/src/mouse.rs` (+113 -0) ➕ `bindings/rust/tests/common/mod.rs` (+33 -0) ➕ `bindings/rust/tests/joypads.rs` (+242 -0) ➕ `bindings/rust/tests/keyboard.rs` (+61 -0) ➕ `bindings/rust/tests/mouse.rs` (+125 -0) ➕ `docker/Dockerfile` (+70 -0) ➕ `share/pkgconfig/libinputtino.pc.in` (+17 -0) 📝 `src/uinput/mouse.cpp` (+6 -6) 📝 `tests/CMakeLists.txt` (+2 -0) </details> ### 📄 Description WIP for #3, see tests for how to use it. TODO: - [x] Publish on crates.io [crates/inputtino](https://crates.io/crates/inputtino) Wrappers: - [x] Mouse - [x] Keyboard - [ ] Trackpad - [ ] Touchscreen - [ ] PenTablet - [x] XboxOneJoypad - [x] SwitchJoypad - [ ] PS5Joypad --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 12:51:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/inputtino#23
No description provided.