flat assembler
Message board for the users of flat assembler.

Index > Windows > Console mouse programming example

Author
Thread Post new topic Reply to topic
System86



Joined: 15 Aug 2007
Posts: 77
System86 08 Mar 2008, 01:16
Here's a simple game that uses mouse input on the console. It involves clicking on the blue buttons (really char 0xdb) as fast as possible. It first displays instructions, then sets the console to 80x25 mode, sets the input and output modes (like no QuickEdit, no wrap at EOL output, etc.), sets code page 437 (the default on my system, but I think some systems have another code page as default), clears the screen, and starts the game. It uses ReadConsoleInput to read the mouse input events.


Description: Source and exe
Download
Filename: msgame.zip
Filesize: 4.07 KB
Downloaded: 313 Time(s)

Post 08 Mar 2008, 01:16
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.