keymapperorg / KeyMapper

**DEVELOPMENT STOPPED**.📱 An Android app that change what the buttons do on your devices!
http://docs.keymapper.club
GNU General Public License v3.0
944 stars 146 forks source link

Xiaomi Smart Pen 2 Page Up/Page Down remap to S-pen Button 1/2 #1214

Open XeonG opened 2 months ago

XeonG commented 2 months ago

Basically, Xiaomi have a smart pen2, that is not very smart, neither are the options or customization provided in Hypersshht OS 1v, infact its pretty much overpriced junk that is currently absolutely useless. The only apps it actually works with are it's own Xaiomi note app and invoking that as a floating window which over other actual properly developed drawing/sketching/sculpting apps..... you can't disable it with its own options or.. and button2 a screen grab feature also useless.

I have not been able to find out how to replicate the actions of what is button1 and button2 for the samsung stylus pen etc.. alot of apps will work with that pen, with the xiaomi smart pen, button1 and 2 come out as Page up and Page down in keymapper.. is there some keycode or way of invoking the same s-pen button 1/2? KEY_BUTTON_1? or something to get it to send the same command as an s-pen would?

Really not a lot help on this.. some people have gotten around it by making button 1 and 2 on this useless pen to virtual press at a screen coordinate that would be like clicking on a drawing apps eraser button in the UI etc.. its all a bit lame, when just need some way of making send the same input as actual supported pen device..

anyway hopefully there is a solution to this, as Xaiomi seem only capable of hardware while the OS/software side of things is dissmal.

XeonG commented 2 months ago

The coordinate remapping example: https://www.reddit.com/r/Xiaomi/comments/rj681k/comment/kame75k/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button