English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 23 March 2024, 17:57   #1
Hannibal
Registered User
 
Join Date: May 2015
Location: Kirkland, Washington, USA
Posts: 56
Using UaeLib to enable/disable warp mode

I want to use UaeLib to control the awesome warp mode from code. However, I can't get it to explicitly Enable or Disable from code, I can only toggle it. Does someone know why the my commands UaeCommand 'AKS_WARP 1' and UaeCommand 'AKS_WARP -1' (with the macro below) doesn't explicitly set or clear the warp mode?
I'm using WinUAE 5.0.0

Code:
UaeCommand: macro					
		move.l	a0,-(a7)
		pea		0.w
		move.l	a0, -(sp)
		pea		.cmdend\@-.cmd\@
		pea		.cmd\@(pc)
		pea		-1.w
		pea		82.w
		jsr		$f0ff60
		lea		24(sp), sp
		move.l	(a7)+,a0
		bra		.done\@
.cmd\@:
		dc.b	\1
		dc.b	0
.cmdend\@:
		even
.done\@:
	endm

	UaeCommand 'AKS_WARP 1'
	UaeCommand 'AKS_WARP -1'
Hannibal is offline  
Old 23 March 2024, 21:35   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
Input events by default now gets toggle for some reason I don't remember. It probably is side-effect of some change.

"warp 0" or "warp 1" should work (changes "warp" config file entry)
Toni Wilen is online now  
Old 24 March 2024, 07:26   #3
Hannibal
Registered User
 
Join Date: May 2015
Location: Kirkland, Washington, USA
Posts: 56
oh. I didn't realize that AKS_WARP and warp were two different settings. Yes, "warp 1" and "warp 0" work perfectly. Thank you again!
Hannibal is offline  
Old 27 March 2024, 20:41   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
ASK_ events should work again as expected in 530b2.
Toni Wilen is online now  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable Warp mode with modern keyboard? rsn8887 support.WinUAE 4 01 July 2021 01:38
Apollo 2030 disable/enable amigaosx support.Hardware 2 03 July 2019 19:20
Write Protected / Enable Disable in Config? ransom1122 support.WinUAE 3 11 June 2017 13:25
Auto enable warp mode Keylonta support.FS-UAE 5 01 January 2017 02:44
uae-configuration: how to enable/disable 'cycle-exact'? hexaae support.WinUAE 32 28 October 2014 08:39

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 22:09.

Top

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