Good day, enthusiasts!
Well, this is my first post, I came accross an issue that I don't know how to solve.
Some time ago I've made a control desk for Microsoft Train Simulator, for a friend.
The moving the accelerator and brakes are interpreted by a Microchip PIC18F25J50, running a framework which emulates a n USB keyboard. No additional driver was needed, since PIC uses standard keyboard protocol. The PIC sends corresponding pressed keys over USB to the computer. As an example, when the accelerator is rotated one step to the right, PC receives "D" key pressed once and the indicator rises by one step.
In Windows, everything works fine. In Notepad, all keys are pressed accordingly. Also in Microsoft Train Simulator, it all works great, as one can see in the movie.
When my friend tried Open Rails, the key pressed from the PIC are no longer interpreted properly. About one in 30 or more commands from the PIC works, all others are ignored. As an example, when I turn the accelerator up, about one in 30 "D" keys pressed reaches the game. Any other keyboard works just fine.
I really don't understand what's the problem. Does't this game use the same Windows driver as Microsoft Train Simulator? Can anyone please suggest a work around this problem? Have any of you guys came across keyboard issues in Open Rails?
Thank you for reading this, and I'm looking forward for a solution.
Well, this is my first post, I came accross an issue that I don't know how to solve.
Some time ago I've made a control desk for Microsoft Train Simulator, for a friend.
The moving the accelerator and brakes are interpreted by a Microchip PIC18F25J50, running a framework which emulates a n USB keyboard. No additional driver was needed, since PIC uses standard keyboard protocol. The PIC sends corresponding pressed keys over USB to the computer. As an example, when the accelerator is rotated one step to the right, PC receives "D" key pressed once and the indicator rises by one step.
In Windows, everything works fine. In Notepad, all keys are pressed accordingly. Also in Microsoft Train Simulator, it all works great, as one can see in the movie.
When my friend tried Open Rails, the key pressed from the PIC are no longer interpreted properly. About one in 30 or more commands from the PIC works, all others are ignored. As an example, when I turn the accelerator up, about one in 30 "D" keys pressed reaches the game. Any other keyboard works just fine.
I really don't understand what's the problem. Does't this game use the same Windows driver as Microsoft Train Simulator? Can anyone please suggest a work around this problem? Have any of you guys came across keyboard issues in Open Rails?
Thank you for reading this, and I'm looking forward for a solution.



Comment