September 07, 2005 Help with reading keyboard in 32bit apps | ||||
---|---|---|---|---|
| ||||
Can anyone tell me how to read the state of arrow and shift keys in a 32-bit application compiled with sc.exe? Sorry if this is a stupid question but I'm trying to write a text-mode text editor and have the following problem. When I compile 16-bit dos apps with -mld, I can detect shift and arrow keys with getch() and _bios_keybrd etc but then can't access more than 64k of memory. When I compile normal 32 bit apps I have no memory problems but then can't detect arrow keys etc with getch() and _bios_keybrd is unavailable. I've tried looking at the X32 extender but it is beyond me. Is there an easier option? Paul |
September 08, 2005 Re: Help with reading keyboard in 32bit apps | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul | "Paul" <Paul_member@pathlink.com> wrote in message news:dfm6vu$2o4v$1@digitaldaemon.com... > Can anyone tell me how to read the state of arrow and shift keys in a 32-bit > application compiled with sc.exe? Sorry if this is a stupid question but I'm > trying to write a text-mode text editor and have the following problem. When I > compile 16-bit dos apps with -mld, I can detect shift and arrow keys with getch() and _bios_keybrd etc but then can't access more than 64k of memory. When > I compile normal 32 bit apps I have no memory problems but then can't detect > arrow keys etc with getch() and _bios_keybrd is unavailable. > > I've tried looking at the X32 extender but it is beyond me. Is there an easier > option? The source to MicroEmacs (from www.digitalmars.com) it has code in it to read the keyboard from DOS, DOS32, and Win32. |
Copyright © 1999-2021 by the D Language Foundation