KBS beta get it here

Community Forums/Showcase/KBS beta get it here

Eole(Posted 2004) [#1]



eBusiness(Posted 2004) [#2]
Lower part of mouth drops down, and hit the table

1372 lines, for a keybinding system, ok it seems to have the features needed, all but: Support for foregin keyboards (an imperfection, muhahahaha). If you want it to be abselutely perfect, then that is what you need. Now I just need to consider if I want to add that mountain to any of my code. Hmmmm...


Eole(Posted 2004) [#3]
Show me where I said that this Lib it's finish ... Now it's really finish, because I stop it

Yes there is a lot of line of code, because if you don't see, there is 4 part:
- One to manage the key binding (mouse/joy/keyboard)
- One to manage a GUI to create the setting ...

- Save and load setting (not in because i stopp it)
- FPS + Chase Camera (not in because i stopp it)

So buy some glass

You don't like OK, you can do the same thing in less line of code OK, We don't need the hit table in your code OK, you don't nedd Joystick OK

But now stop, please

Now I think some people find some utilty of me code


dangerdave(Posted 2004) [#4]
Thanks for posting this Eole.
Unfortunately, some people seem to think it is not worthwhile.
I think it is.


aCiD2(Posted 2004) [#5]
Great job Eole! Although i enjoy doing the coding myself, i think its an excelletn contribution! Haven't tested it yet but still - good work :)


eBusiness(Posted 2004) [#6]
Don't take my words as hard as you do, I'm sorry if I got my critics mixed with some inappropiat comments.
You tend to be very easily provoked, try to avoid provoking back if you feel that somebody provoke you. Also remember, most people post critics in order to help you make your work better, even if the critics seems harsh.


fredborg(Posted 2004) [#7]
Thanks! Good work, easy to use and easy to understand!

The post in the code archives seem to be missing some of the code?


Eole(Posted 2004) [#8]
Ok, I will look at this ...


Eole(Posted 2004) [#9]
Now it's good in the code archive, some probleme with ctrl+c ctrl+v lol


scribbla(Posted 2004) [#10]
from a noobi point of view i learn alot from people showing there code....thanks Eole


Eole(Posted 2004) [#11]
I add some little documentation in the code archive :
http://www.blitzbasic.com/codearcs/codearcs.php?code=1026


ashmantle(Posted 2004) [#12]
Thanks Eole for releasing this code.. I find it very useful to learn from :)


Mustang(Posted 2004) [#13]
Nice! As I have already done my own (not public) GUI menu frontend and key binding system (that let's you choose HW / game settings too) for my games(s) I know that making good and versatile system takes more than two lines of code... small and simple systems are good for tech demos and such, but doing one for a true game takes bit more effort. I appreciate what you have done here, and nice for you to release it for free.


Dragon57(Posted 2004) [#14]
Very nice! Much appreciated.


Eole(Posted 2004) [#15]
Thank ..


Rob Farley(Posted 2004) [#16]
Just skimming though the code but would it not have been easier to have stuck all the scan code names into a data statement (or external file for multi-keyboard support) then just read them into an array?

[edit]Here's something I knocked up...

Dim scancode$(255)

filein = ReadFile("scancodes.csv")
Repeat
tmp$=ReadLine(filein)
scancode(Left(tmp,Instr(tmp,",")))=Right(tmp,Len(tmp)-Instr(tmp,","))
Until Eof(filein)
CloseFile filein

SetBuffer BackBuffer()
Repeat
Cls
y=0
For n=2 To 255
If KeyDown(n) Then Text 0,y,scancode(n):y=y+15
Next
Flip
Until KeyHit(1)
Then copied and pasted from the scancodes list in the help, tidied it up in excel and saved as scancodes.csv to create, using this method you can have any type of keyboard attached to the computer and you just change this file:
1,ESCAPE
2,1
3,2
4,3
5,4
6,5
7,6
8,7
9,8
10,9
11,0
12,Minus (-)
13,Equals (=)
14,Backspace
15,Tab
16,Q
17,W
18,E
19,R
20,T
21,Y
22,U
23,I
24,O
25,P
26,Left Bracket ([)
27,Right Bracket (])
28,Return/Enter
29,Left Control
30,A
31,S
32,D
33,F
34,G
35,H
36,J
37,K
38,L
39,Semi-Colon (;)
40,Apostrophe (')
41,Grave
42,Left Shift
43,Backslash (\)
44,Z
45,X
46,C
47,V
48,B
49,N
50,M
51,Comma
52,Period (.)
53,Slash (/)
54,Right Shift
55,Multiply (*)
56,Left Alt/Menu
57,Space
58,Capital
59,F1
60,F2
61,F3
62,F4
63,F5
64,F6
65,F7
66,F8
67,F9
68,F10
69,NumLock
70,Scroll Lock
71,NumPad 7
72,NumPad 8
73,NumPad 9
74,Subtract (-)
75,NumPad 4
76,NumPad 5
77,NumPad 6
78,Add (+)
79,NumPad 1
80,NumPad 2
81,NumPad 3
82,NumPad 0
83,Decimal (.)
86,OEM_102
87,F11
88,F12
100,F13
101,F14
102,F15
112,Kana
115,ABNT_C1
121,Convert
123,NoConvert
125,Yen
126,ABNT_C2
141,Equals
144,PrevTrack
145,AT
146,Colon (:)
147,Underline
148,Kanji
149,Stop
150,AX
151,Unlabeled
153,Next Track
156,Enter
157,Right Control
160,Mute
161,Calculator
162,Play/Pause
164,Media Stop
174,Volume Down
176,Volume Up
178,Web Home
179,Comma
181,Divide (/)
183,SysReq
184,Right Alt/Menu
197,Pause
199,Home
200,Up
201,Page Up/Prior
203,Left
205,Right
207,End
208,Down
209,Next
210,Insert
211,Delete
219,Left Windows
220,Right Windows
221,Apps
222,Power
223,Sleep
227,Wake
229,Web Search
230,Web Favorites
231,Web Refresh
232,Web Stop
233,Web Forward
234,Web Back
235,My Computer
236,Mail
237,Media Select



Eole(Posted 2004) [#17]
Yes a lot of thing can be add, in this lib like :
- Hit or down
- multi keyboard support
- Read and write functions to load and save setting
- A little GUI to create a setting, before the begining of the game
etc ...

But now, you have the base you can do all you want


eBusiness(Posted 2004) [#18]
I have expanded my competiting code (see code archives) a bit, by the way. Thanks for putting me on the job, I liked coding it :)


Ross C(Posted 2004) [#19]
Eole, very nice :) But you could put the above code in a codebox, new feature to the forum, just been added.

(codebox)


(/codebox)

replace the brackets with [] brackets :)


Eole(Posted 2004) [#20]
You can find this code, in the Code Archive ...


Eole(Posted 2004) [#21]
It's very nice codebax ...