Game Programming and Development Tools

C# Keyboard input library – Calin

Calin

Member

Posts: 358
From: Moldova
Registered: 12-04-2006
I made a C# wrapper for Managed DirectInput. I thought to share it. The main reason for building the wrapper is the ease of use. Initializing and 'reading' user input takes a few lines of code, this library makes keyboard polling as trivial as possible.

http://calinnegru.googlepages.com/KeyboardNetPlug.dll

I have a quick explanation on how to use it on my libraries page:

http://calinnegru.googlepages.com/downloads

------------------
Check my C# libraries

[This message has been edited by Calin (edited May 02, 2007).]

MastaLlama

Member

Posts: 671
From: Houston, TX USA
Registered: 08-10-2005
Hey Calin,

Those look like some great C# libraries! Here's a question for you though...where can I find some good tutorials and utilities to learn C#?

Thanks,
MastaLlama

Calin

Member

Posts: 358
From: Moldova
Registered: 12-04-2006
You can use VS C# 2005 Express to write and compile C# code.
C# is not that much different than C++ so if you know the latter it's easy to make the switch. If you google for [URL=http://www.google.com/search?q=C%23+tutorial&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGIC_enRO220RO220 ]C# tutorial[/URL] you get a handful.
If you plan to make games the real challenge is to get graphics on screen. I'm using MOGRE in my projects and you have other options as well (i.e Irrlicht, XNA, Torque, etc. )

------------------
Check my C# libraries

MastaLlama

Member

Posts: 671
From: Houston, TX USA
Registered: 08-10-2005
Sweet, I've been looking at some .NET tutorials for the last week...I know VB and ASP but I want to do C# in .NET, looks and feels cleaner. I have a background in C++ but it's been a loooong while. So far all the tutorials I've tried don't work...like how all the tutorials in a good programming book never work...LOL.
Calin

Member

Posts: 358
From: Moldova
Registered: 12-04-2006
You shouldn't have problems running the easy ones which don't need you to reference assemblies. Just past the code in Visual Studio and compile it.
Referencing assemblies is easy too. You might need some time to figure out how the code works and what it does but getting it compiled is easy

------------------
Check my C# libraries