Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
20 May, 2013, 19:29:40 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 3 4 [5]   Go Down
  Print  
Author Topic: Prizm Useful Routines -- post here! -  (Read 3974 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
PierrotLL
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 02 December, 2012, 19:26:25
Date Registered: 14 February, 2011, 23:12:59
Location: France
Posts: 19


Total Post Ratings: +2

View Profile
« Reply #60 on: 28 November, 2011, 14:36:04 »
0

IsKeyDown equivalent

1
2
3
4
5
6
7
8
9
10
int keydown(int basic_keycode)
{
const unsigned short* keyboard_register = (unsigned short*)0xA44B0000;
int row, col, word, bit;
row = basic_keycode%10;
col = basic_keycode/10-1;
word = row>>1;
bit = col + 8*(row&1);
return (0 != (keyboard_register[word] & 1<<bit));
}
Expect a Basic keycode (27=right, 38=left) or 10 to test the AC/ON key.
It allow to detect multiple pressed keys simultaneous.
« Last Edit: 29 November, 2011, 03:02:10 by PierrotLL » Logged

Pages: 1 ... 3 4 [5]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.244 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.