by StuartL » Sat Aug 30, 2008 8:26 am
by StuartL
Sat Aug 30, 2008 8:26 am
BillB wrote:My experience in using an XBOX 360 gamepad to control my Bioloid/Robonova is that you can not have enough buttons. It would be great if your device could detect double clicks of a the gamepad buttons. That way you can effectively double the number of gamepad buttons. I have tried doing this on the CM5 - but is simply not fast enough. Distributing the responsibility of detecting double clicks to your PS2 device would be great.
That is not difficult, I'm sure we can do that.
How about 'number of presses of button since last poll per button'?
Of course the next question is how do you want the user interface to look? The more bytes you send across the bus the slower the poll will be.
Right now we've got two bytes of digital button state and four bytes of analog controller state. If you want button counts that number is going to increase dramatically, but it's only one poll per cycle. We can do a lot of pre-calc, of course.
How about a second set of bytes for the digital buttons which are set if there was more than one press since the last poll? If you're polling quite fast you might not catch a double click this way.
When we get the first custom built prototype working I'll try to remember to get hardware timers involved and see if we can reliably determine double clicks in hardware...
BillB wrote:My experience in using an XBOX 360 gamepad to control my Bioloid/Robonova is that you can not have enough buttons. It would be great if your device could detect double clicks of a the gamepad buttons. That way you can effectively double the number of gamepad buttons. I have tried doing this on the CM5 - but is simply not fast enough. Distributing the responsibility of detecting double clicks to your PS2 device would be great.
That is not difficult, I'm sure we can do that.
How about 'number of presses of button since last poll per button'?
Of course the next question is how do you want the user interface to look? The more bytes you send across the bus the slower the poll will be.
Right now we've got two bytes of digital button state and four bytes of analog controller state. If you want button counts that number is going to increase dramatically, but it's only one poll per cycle. We can do a lot of pre-calc, of course.
How about a second set of bytes for the digital buttons which are set if there was more than one press since the last poll? If you're polling quite fast you might not catch a double click this way.
When we get the first custom built prototype working I'll try to remember to get hardware timers involved and see if we can reliably determine double clicks in hardware...