mobiluf.blogg.se

Universal control remapper mouse to joystick
Universal control remapper mouse to joystick








If you want to be able to make a straight line between, eg, top and right, without going to through the center, adjust either the inner (decrease) or outer (increase) radius.Īlso, because I'm keeping the cursor inside the circle, you never get far away from the center, thus, to abort input you never need to move back more than the difference between the outer and inner radius. With a joystick, you go from top to right either by rolling it, thus keeping input, or you go down to the center, stopping input, then right to continue input.

Universal control remapper mouse to joystick

I intended to mimic some joystick features, and it does exactly what I wanted. Please do not take this as me saying "Your script stinks" because clearly you are doing some interesting stuff with it, it just needs more work to be practical. With mine, if you are at up and move in a straight line down+right, you get up, up+right, right. If I am at the top, and I want to move to right - moving the mouse in a straight line would output up, nothing, right - because if you draw a straight line from the top to the right, it clips the black part. The image in yours is not always-on-top, nor is it semi-transparent.įinally, yours is impractical to use. It only works out which keys you need to hold *now*, so if, for example it moves from up+right to right, it has no concept that it needs to release up, only a concept that up + right needs holding.įurthermore, it requires more mathematical knowledge to understand. It's a bit of a stretch to go from that to working out which key events to send. Helgef wrote:I already did the code which I tought would correspond to the needs of the thread starter, and he seemed to concur. Hopefully either the thread starter or someone else gets help from this. Thanks for your efforts evliC, It's clear you are very good at the mouse stuff. *Expected means as my script works, I'm not sure we are on the same page here. I tried to modify the "deadzones", but didn't find a suitable value. In quake, it sent me walking somewhat as expected*, but it would never release all keys and halt. I (very briefly) tried your script in the new thread you started. In that script there is no actual keypresses, I intended the thread starter to fill it in to his needs and modify it to work with his game. If you look at post number three, that script shows exactly what I intended, start it, press win+s, move the mouse around, the tooltips shows which key is being held down, the star (*) means all keys up. I already did the code which I tought would correspond to the needs of the thread starter, and he seemed to concur. Here is some code which does basically what you want: DeadZone := 100 if this close to the center, do not moveĬenter := "










Universal control remapper mouse to joystick