|How do i wait for a mose input to continue the code?
|Page 1 of 1|
|Author:||avareat [ Thu May 03, 2018 2:59 pm ]|
|Post subject:||How do i wait for a mose input to continue the code?|
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
|Author:||profkelly [ Thu May 03, 2018 5:33 pm ]|
|Post subject:||Re: How do i wait for a mose input to continue the code?|
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.
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group