Giter Site home page Giter Site logo

Comments (9)

ariadesu avatar ariadesu commented on July 24, 2024 1

I'm using a Roccat Leadr, which doesn't allow mapping to F keys beyond 12, or to regional keys; instead it uses the ISO position of those keys. (These are among an extensive list of grievances). The Leadr has two buttons left of the left click. I use these for move and resize. These are not M4 and 5, as those are on the thumb rest. Though you can map any button to send M4 and M5, I didn't want to do that since I do use M4 and M5's functionality in the browser (though I have them mapped to the hat above the mouse wheel).
To avoid conflicts, I used the key remapper in PowerToys so I can use keys that aren't on ISO keyboards and therefore hopefully aren't listened for by anything other than AltSnap. Another possible solution is to launch an application which will type the obscure key combination for me, as launching arbitrary applications is supported by the mouse software. But this felt sluggish. Possibly my fault.

Because DInput allows 128 unique buttons, and can be made exclusively visible to only one application by the user, I thought it would be well suited for this. XInput doesn't have this flexibility, but it is the modern gamepad interface, so implementing DInput support in 2022 without acknowledging XInput would probably be odd. Further, XInput is the interface for the Microsoft Adaptive Controller, which is one of the most popular products for low tech custom inputs.

from altdrag.

RamonUnch avatar RamonUnch commented on July 24, 2024

for now only keys that generate a virtual key keyboard event can be mapped for hotkey. My fork also allows mouse buttons to be mapped as hotkeys, but it is for sure possible to use a program to re-map gamepad buttons to keyboard, I would suggest you take a look at AntiMicro

from altdrag.

ariadesu avatar ariadesu commented on July 24, 2024

I was hoping that by making it native D input, I'd reduce conflicts where the keyboard hotkey is taken by something else. My mouse doesn't allow mapping mouse buttons beyond M5, but it does allow X and Dinput (and keyboard) mapping. I was hoping to set a mouse button to drag and one to resize.

from altdrag.

RamonUnch avatar RamonUnch commented on July 24, 2024

If you want to use mouse Xbuttons to move/resize windows I sugget you try my fork, Stefan is no longer active in the development.

from altdrag.

RamonUnch avatar RamonUnch commented on July 24, 2024

If your mouse allows for keyboard mapping then you simply need to map the button you want to a right win for example.
Also the latst versions of my fork has some bugs if you combine MB4/5 to hotclicks+move/resize, I will fix it soon.

from altdrag.

RamonUnch avatar RamonUnch commented on July 24, 2024

fix: RamonUnch/AltSnap#172

from altdrag.

ariadesu avatar ariadesu commented on July 24, 2024

Thank you. I've switched to your fork. I wanted to use M6 and M7 rather than 4 and 5, but for now I have a workable solution with keyboard emulation.

from altdrag.

RamonUnch avatar RamonUnch commented on July 24, 2024

I think the details on your setup would be interesting to people.

from altdrag.

RamonUnch avatar RamonUnch commented on July 24, 2024

I am actually working in extending AltSnap to 9 buttons, as long as the buttons have been mapped to a key. It could be a key outside of the keyboard (ie F13 through F24) or even maybe keys that are marked unmapped in the MS doc. I will post an issue soon in my repo

from altdrag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.