PistonDevelopers / input

DEPRECATED - moved into the piston repo
MIT License
7 stars 11 forks source link

Replace current design with the design from Piston #21

Closed bvssvni closed 10 years ago

bvssvni commented 10 years ago

I think we should make a gradual change from the Piston design to make it more flexible.

First we can start to move over things like Mouse and Keyboard.

bvssvni commented 10 years ago

Next thing I would like to move over is the Args structures. These define the data that goes with different events.

bvssvni commented 10 years ago

tomaka suggested to separate the Render and Update from Input, which will give the new structure:

pub enum GameEvent {
    Render(RenderArgs),
    Update(UpdateArgs),
    Input(InputEvent)
}