| Main > Main Forum |
| Spinner and Rotary Help |
| << < (2/2) |
| muzland:
Made some more progress on the rotary interfacing today. I wired up the 12 rotary outputs as follows and tried it out. Wire outputs from pins 1, 4, 8 and 11 together. This forms the new input 1. Wire outputs from pins 2, 5, 9 and 12 together. This forms the new input 2. Wire outputs from pins 3, 6, 10 and 13 together. This forms the new input 3. I am assuming that pin 7 is the common on the rotary switch connector (it is on mine when I put the multi-meter on it). This has turned a 12 bit input mask into a 3 bit input mask and we have retained all of the directional information. I have wired this into my sidewinder hack and confirmed that this acts as a 3 bit rotary input mask. So we only need to use 3 inputs instead of 12 on an encoder if we wire directly. My encoder is joystick based so I used Joy2Key to convert to keystrokes. Now I just need to figure a way of writing a Key2Key type program that takes the keystrokes and converts these to new keystrokes for the clockwise and ant-clockwise operation needed in the games. It would need to intercept the keys and replace them with new ones representing the cw and acw keys. If the program knows the previous input then we know the direction based on the current input and need to output the correct keystroke. Anyone know how to do this kind of keyboard interception and replacement? I can use C but I am not overly familiar with using C with windows. If I can get this to work I can ditch the microcontroller idea and the community would have a simple & free software solution to using 12 way rotaries using only 3 inputs on a keyboard encoder. No more expensive rotary controllers to buy! Tata Muzland |
| Navigation |
| Message Index |
| Previous page |