Learning C# DirectInput

Started by
-1 comments, last by pprice001 19 years, 1 month ago
Ladies and gents, from the question I am going to ask you can probaly tell I am fairly new to c#! Using the following member variables private DirectInput.KeyboardState prevState; private DirectInput.KeyboardState newState; once per loop I want to save the previous state before obtaining the current state, for example prevState = newState; but this of course simply points the prevState ref to the newState ref meaning they both work on the same data! but what I want is something like memcpy in C Any suggestions?? Thanks in advanced!

This topic is closed to new replies.

Advertisement