Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / DBPro Simplified Keys Plug-in.

Author
Message
Xarshi
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: Ohio
Posted: 25th Jul 2006 04:51
Ok,well,I decided that I was going to make a simplified keys dll today. Well,there are the number keys, used like a norma upkey() function,but instead it would be key1() or key2() or so on. Say you had it set to do this:


if you press it on the num-pad or above the letters,it will still register. The keys are this: Tab key(), a-z key(). If you want some symbols added in,just lemme know and I'll add 'em in. Have fun for now,I personally think this makes things much easier.

Fear the dwemer pokeballs. Fear them!

Attachments

Login to view attachments
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 25th Jul 2006 10:20
Huh, that's nice. I'll probobly use it, instead of fiddling around with scancode()!

Did you ever dream of creating a professional 3d game, easily, and fast? Game Developer
http://forum.thegamecreators.com/?m=forum_view&t=84124&b=8
Be Ruler of your World...
adr
21
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 25th Jul 2006 11:23
The advantage of testing keystate is that your keys are configurable. Writing code which says if akey() then you can't reconfigure that control, whereas

Means that up_action can be redefined at runtime ... i.e. loaded out of a configuration file!

[center]
But you see, I have the will of the warrior. Therefore, the battle is already over. The winner? Me!
Xarshi
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: Ohio
Posted: 25th Jul 2006 19:32
adr- I do understand where your coming from with that. In fact,I use loading the controls out of a config file for one of my games. Its just sometimes,if you don't mean to use that,it'd be good to have something easier. Personally,I'd rather not spend time checking if I'm right with the wsad keys,and rather just type in w key() and what not. Any other keys people would like added in?

Fear the dwemer pokeballs. Fear them!
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 26th Jul 2006 08:07
i think the WASD keys are scancodes 29,30,31, and something else... (32?)

As for checking if the key is right...


Did you ever dream of creating a professional 3d game, easily, and fast? Game Developer
http://forum.thegamecreators.com/?m=forum_view&t=84124&b=8
Be Ruler of your World...
Xarshi
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: Ohio
Posted: 26th Jul 2006 08:20
no its 17,31,30,and 32. By the way,if people wanna use this,they gotta put this in the file somewhere:


That or any other input function will do. Otherwise you'll get a crash. Thats just ment to include the dbp input dll.

Fear the dwemer pokeballs. Fear them!
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 26th Jul 2006 08:24
ah, i got 3! woot!

did you happen to use that short snippet i made? I'm interested to see if other people will use it.

Did you ever dream of creating a professional 3d game, easily, and fast? Game Developer
http://forum.thegamecreators.com/?m=forum_view&t=84124&b=8
Be Ruler of your World...
Xarshi
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: Ohio
Posted: 26th Jul 2006 09:59
no,I just knew from past experience. But that code snippet is pretty useful.

Fear the dwemer pokeballs. Fear them!
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 26th Jul 2006 10:06

Login to post a reply

Server time is: 2024-11-23 18:34:05
Your offset time is: 2024-11-23 18:34:05