Three questions about keyboard-input in MSX-BASIC (Development MSX Fora)MSX Resource Center            
            
English Nederlands Espa�ol Portugu�s Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 47 gasten en 0 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Development - Three questions about keyboard-input in MSX-BASIC

Schrijver

Three questions about keyboard-input in MSX-BASIC

DemonSeed
msx professional
Berichten: 1023
Geplaatst: 25 Juli 2007, 01:51   
* Is there ANY way of reading [GRAPH] and/or [CTRL] input, using some corresponding ASCII-code? As in: "A"=CHR$(65), [RETURN]=CHR$(13) etc?

* If not, is there an alternative way?

* Who can tell me which DEFUSR-adress is preserved for cleaning the keyboard buffer? I forgot...
NYYRIKKI
msx master
Berichten: 1525
Geplaatst: 25 Juli 2007, 08:18   
* No, there is no ASCII code for CTRL or GRAPH. If they are used in combination with other letters they will have effect to ASCII code anyway.

* First question makes me think you are talking about BASIC. So maybe this helps:
if peek(&HFBEB)and2 then else ?"CTRL pressed"
if peek(&HFBEB)and4 then else ?"GRAPH pressed"


* DEFUSR=&H156

DemonSeed
msx professional
Berichten: 1023
Geplaatst: 25 Juli 2007, 19:13   
Great, thanks a lot!
CrazyBoss
msx freak
Berichten: 151
Geplaatst: 25 Juli 2007, 21:32   
hi i didn know there is a defusr=&H156

as a basic programmer i always used

10 if inkeys$>"" then 10

-Claus

 
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.