yamakaky / gyromouse Goto Github PK
View Code? Open in Web Editor NEWA crossplatform mapper from gamepad inputs to keyboard and mouse actions, with special care for good gyro controls.
A crossplatform mapper from gamepad inputs to keyboard and mouse actions, with special care for good gyro controls.
Line: 78
Lines 75 to 85 in 2f32632
Line: 539
gyromouse//src/config/parse.rs
Lines 536 to 546 in 2f32632
https://www.rapidtables.com/web/color/RGB_Color.html#color-table
Line: 166
gyromouse//src/config/all-settings-example
Lines 163 to 173 in 22217ca
stick.handle
will apply its own deadzone setting to our calibrated input,
thinking it's a raw value.
Line: 49
gyromouse//src/config/types.rs
Lines 46 to 56 in f61e801
Line: 23
Lines 20 to 30 in 9a79e56
Line: 116
Lines 113 to 123 in f61e801
Most likely replace https://github.com/eine/tip which only supports linux.
Line: 488
gyromouse//src/config/parse.rs
Lines 485 to 495 in 2f32632
Every command in https://github.com/Electronicks/JoyShockMapper#commands should at least be parsed so that every config file can be used even if the feature in not implemented here.
Needed:
Basically, uncomment stuff at https://github.com/Yamakaky/gyromouse/blob/master/src/config/all-settings-example, run cargo test
and make it pass the test.
Line: 122
gyromouse//src/config/parse.rs
Lines 119 to 129 in f61e801
but 'sensor-api' does not exist on the fork: https://github.com/Yamakaky/rust-sdl2/branches/all
Line: 70
gyromouse//src/space_mapper.rs
Lines 67 to 77 in 2f32632
Every missing feature from JSM should be documented and have an open issue. This includes:
Line: 43
gyromouse//src/space_mapper.rs
Lines 40 to 50 in 2f32632
Line: 346
Lines 343 to 353 in 9a79e56
Line: 43
gyromouse//src/space_mapper.rs
Lines 40 to 50 in ac4dd75
Line: 69
gyromouse//src/space_mapper.rs
Lines 66 to 76 in 2f32632
enigo
uses xdo which pauses for 12ms after each keypress, presumably for it to be taken into account? Test with low or no delay.
See e97f7d5
Line: 18
gyromouse//src/config/settings.rs
Lines 15 to 25 in 35ea3d3
Line: 127
gyromouse//src/backend/sdl/gui.rs
Lines 124 to 134 in 02e864d
Line: 109
Lines 106 to 116 in f61e801
Line: 354
gyromouse//src/backend/sdl/mod.rs
Lines 351 to 361 in 94c6e6c
Line: 131
gyromouse//src/config/parse.rs
Lines 128 to 138 in f61e801
Hello,
I found this project to do exactly what I was looking for! It almost works, but when I press the ZR button on my 'right joycon' nothing happens. My configuration file is relatively simple, just for testing. Also I am on Mac M1 and I only have the right Joycon connected.
RESET_MAPPINGS
GYRO_SENS=32
S = e
W = f
N = g
E = h
R3 = c
R = GYRO_ON
ZR = k
RIGHT_STICK_MODE = NO_MOUSE
I expect that when I press ZR I should see it type a k, which doesn't happen. All the other options work.
Perhaps related, when I press either SL or SR I get the following crash:
name = 'gyromouse'
operating_system = 'unix:OSX'
crate_version = '0.1.0'
explanation = '''
Panic occurred in file '/Users/runner/.cargo/git/checkouts/rust-sdl2-52ead21fa771c331/27d164d/src/sdl2/controller.rs' at line 336
'''
cause = 'unhandled controller button'
method = 'Panic'
backtrace = '''
0: 0x100a4d6a9 - gyromouse::main::ha2be660b92ece924
1: 0x100a83dca - std::sys_common::backtrace::__rust_begin_short_backtrace::hc242b2fc2b558fd9
2: 0x100a4b7f1 - _main'''
Line: 86
gyromouse//src/config/parse.rs
Lines 83 to 93 in f61e801
Gyromouse is descriptive but kinda generic, find a better one.
Line: 45
Lines 42 to 52 in 2f32632
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.