Input Module

Input symbol
Input module symbol

The input module takes mouse clicks from the user (via the virtual IO module) and determines what they are trying to do. It then passes appropriate commands to the game core, which you will write.

Input types

The current input module is designed for a board game, so it works out which square or button the user has clicked and sends a move or button message to the core.

The dimensions of the board and the number of game buttons can be controlled by editing a header file in e:\AndrewWorkspace\Stratego\input.h. This allows the input module to be used for any board game. The code may have to be altered to support different types of game, but it will still do the same job of converting mouse clicks into commands.

More information about the input module can be found here.