Qbasicnews.com
May 23, 2019, 03:43:45 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: finding multikey scan codes  (Read 3042 times)
Deleter
Na_th_an
*****
Posts: 1292



WWW
« on: November 28, 2005, 11:29:11 PM »

now I am sure there is a reference somewhere...but I prefer to simply code a tiny program to find the multikey value for any key while im making a program. I shortened it down to 4 lines, I was wondering if there was either any shorter linewise or simpler to look at ways (still same line as this) to do the same thing. It has to exit when you press esc, print the value of the key you are pressing, and check all 127 values. If there aren't any other short ways, then just get creative and show us what you come up with Tongue.

Code:
screen 18
for bla = 0 to 128
    if multikey(bla) then print bla else bla = iif((bla>127) AND NOT(MULTIKEY(1)),0,bla)        
next
Logged

DrV
Na_th_an
*****
Posts: 1553



WWW
« Reply #1 on: November 29, 2005, 01:15:34 AM »

There's a reference in docs/gfxlib.txt and constants in fbgfx.bi, both included with the standard distribution. Smiley
Logged
Deleter
Na_th_an
*****
Posts: 1292



WWW
« Reply #2 on: November 29, 2005, 01:22:16 AM »

does that mean you can just use say "Multikey(SC_ESCAPE)" without including anything, since gfxlib is already included? (And I still like my program anyways =)
Logged

DrV
Na_th_an
*****
Posts: 1553



WWW
« Reply #3 on: November 29, 2005, 01:24:47 AM »

It's just a regular include file; you have to #include "fbgfx.bi"
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!