Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to create gamepad using MCU and VB

Status
Not open for further replies.

Deexith Hasan

Advanced Member level 4
Full Member level 1
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top