English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 21 March 2023, 09:10   #1
REAKTOR BEAR
Registered User
 
Join Date: Mar 2021
Location: SWEDEN
Posts: 40
Right mouse button clicked

Does anyone have an example, how to read RMB click? (right mouse button)
REAKTOR BEAR is offline  
Old 21 March 2023, 09:27   #2
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,437
What I do is the following:
When you want to read the right mouse button:
Code:
bit_mouseb2			EQU	10
	lea.l $dff000,a6
	btst	#bit_mouseb2,potgor(a6)
	beq	.right_button_pressed
Every frame you're waiting to read the right mouse button execute
Code:
	lea.l $dff000,a6
	move.w	#$cc00,potgo(a6)
In my code the read is done prior to the reset of POTGO.
roondar is offline  
Old 31 March 2023, 17:16   #3
REAKTOR BEAR
Registered User
 
Join Date: Mar 2021
Location: SWEDEN
Posts: 40
great thanks.... reading bit 10 in $dff016 (potgor) seems to be working
REAKTOR BEAR is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Focus active window to front when clicked with mouse Loki762 support.Other 11 21 March 2021 06:04
Right mouse button check dissident Coders. Asm / Hardware 2 14 June 2019 22:49
A2000 left mouse button use in workbench causes mouse to stop responding. gary_nz support.Hardware 5 17 September 2017 10:03
Right mouse button not working? NovaCoder project.ClassicWB 3 09 May 2011 06:26
Problem right mouse button 3dfx4ever support.Hardware 3 17 February 2011 08:33

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:27.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.41215 seconds with 13 queries