EASy68K  
It is currently Mon Jun 25, 2018 4:03 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu May 03, 2018 2:59 pm 
Offline

Joined: Thu May 03, 2018 2:50 pm
Posts: 1
i'm trying to make a minesweeper, and i need to register the mouse click on the output screen to click in the different cells for the game to work, the problem is that i can't make the program to wait for the clicks to keep going, and it either register the click before i run the program and use that position or, if i try to start the program without clicking in the first place, it uses the 0,0 position (as expected) and finish it

i'm using the trap #6 but either that's not what i need or i'm doing something wrong with it

sorry if my question is confusing and thanks for your patience and time


Top
 Profile  
 
PostPosted: Thu May 03, 2018 5:33 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1072
Take a look at the mouseWindowSize.X68 program in C:\EASy68K\Examples. It uses interrupts to handle mouse input. A mouse button press calls mouseDownIRQ, a mouse button release calls mouseUpIRQ and a mouse movement calls mouseMoveIRQ.

_________________
Prof. Kelly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group