Keyboard Sample in XNA

From WorkCDN

Jump to: navigation, search
  • Description: The purpose of this setup is to allow self and remote acquisition of the keyboard state and also allow for multi-player on one or multiple(such as in a network) keyboards. It does this by maintaining a key mapping for each player and allowing the specification of a particular player in the case of multiple keyboards where the same key may be used by multiple players. I also use a method that stores Textures to a Dictionary to save some typing and global variable declarations.
Personal tools