AntiMicroX / AntiMicroX/antimicrox

Allow an axis to be mapped to mode steps

Đang mở
#1,252 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
C++
Star
4k
Fork
249
Merge trung bình
13 phút
Pull request đã merge (30 ngày)
1

Mô tả

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe.

I have a Rock Band 2 guitar with an effects switch that emits different values on an axis when you move it. For instance, -.8, -.4, .1, .4, .8 (rounded). I'd like to be able to map ranges on that axis to holding a button (e.g. if it emitted .8, hold down SHIFT until it emits one of the other defined steps). This would allow that input to be used for functions like push-to-talk voice chat.

### Describe the solution you'd like

I'd like to be able to set the steps and how wide they are (e.g. within .1 of .8) and to enumerate the recognized values. It looks like it emits a neutral value (-.00392) when the switch is at rest. That value should be ignored for the purposes of detecting if a key should be held down (and which one).

I want to say "if it's within .1 of .8, hold SHIFT. if it's within .1 of .3, hold SPACE, etc." It should hold the key until it enters a new enumerated position. For my purposes, I only need one switch position to be mapped (either holding or not holding depending on the position of the switch), but to make the switch full usable, many positions should be supported.

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.