|
-
April 22nd, 2006, 02:34 PM
#1
Problem with Socket :(
Hi,
i'm very new to C# i started programming with #Develop and it's very nice 
My goal is to develop a little application in C# that handles a Joystick inputs, with DirectInput from DirectX API i got what i need, i can detect the different inputs from the player (UP, DOWN, Fire, etc), now i need to send those inputs to a Socket Server that i've developped, this server is just a simple echo server, so the server is supposed to echo "LEFT", "RIGHT", "UP" etc it works BUT the bytes are sent to the socket ONLY when i close the application!!! , not when the user press the buttons from the joystick, so it's not very nice for the gameplay hahah 
So if i press, LEFT, RIGHT, DOWN, nothing is sent, then i close the application, and at this moment the byes are sent and i see the server echoing the inputs.
I've put my Joystick listening stuff in a Thread, maybe there is something i didn't get as 'im pretty new to this language.
Thanks a lot for your help, i really appreciate
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|