How to create gamepad using MCU and VB

Status
Not open for further replies.

Deexith Hasan

Advanced Member level 4
Joined
Oct 24, 2014
Messages
111
Helped
4
Reputation
8
Reaction score
3
Trophy points
18
Activity points
740
i designed a program in PIC to send no 1,2,3,4 through serialport when 4 buttons are pressed respectively.....
in VB i designed an app, if 1 is received then sendkeys up....etc...
the project worked......

i used debounce in button..
Code:
if(RD0==0)
{
while(Rd0==0);
serialwrite('1');
}


so when button is pressed only one 1 will be sent and my keyboard up-arrow will be pressed........ BUT IN REAL GAMING we need to press up arrow continuously....i tried removing while statement thn my VB does not respond to mcu as read buffer is fully filled with 111...

how to create a real gamepad
 

I'm kinda doubt VB is the best choice. I would have used C for the speed and interrupt capability
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…