Re: Re: Beta: 2.5 beta 6

Josef Drexler <[email protected]> Mon, 19 Jun 2006 17:15:04 -0400
Newsgroups gmane.games.ttdpatch.general
Message-ID <[email protected]>
On Jun 19, 2006, at 10:25 AM, Marcin Grzegorczyk wrote:
> Josef Drexler wrote:
>> [ttdpatchw.kbd]
>> I admit that I don't know how this table actually works, Marcin  
>> wrote that code.  But if you aren't really using it, removing it  
>> is probably the best option.
>
> The table simply maps one byte to another.  The default one has two  
> mappings: 0x80 is mapped to 0x9E (TTDPatch's pre-Unicode idea of  
> the Euro sign) and 0xE0 is mapped to itself (which was a different  
> way to fix the same bug).

I see.

> Looking at the svn diffs and the r482 source, I guess that the fix  
> is to update checkforexitkey in patches/kbdhand.asm (use 3 instead  
> of 0xe0 (WINTTDX only!)).

Yes, I use code 03 instead of E0 now, as DOS does.  As a side  
benefit, this means that Ctrl-C now brings up this dialog in Windows  
as well.

> Whether ttdpatchw.kbd still works right or not I cannot say --  
> other code has changed too much for me to be able to trace it yet.   
> (Does TTDPatchW use the Unicode version of WM_CHAR now?  If yes,  
> then ttdpatchw.kbd is no longer useful; if no, it still might be.)

No, there's no Unicode input yet. Characters that aren't in the  
native code page cannot be input at this time.

-- 
Josef Drexler
[email protected]



--
TTDPatch mailing list.  To unsubscribe from the list, send an email to
[email protected] with the body (not the subject) of the
email containing only the word "unsubscribe" (without the quotes).
For more info please see http://www.ttdpatch.net/maillist.html