Game Development Community

Bonds

by Riley Johnson · in Technical Issues · 04/17/2006 (4:27 pm) · 5 replies

I've been working on the InventoryGui and the functions that come along with it. I believe that it was Dreamer that put it online a while ago, and I was wondering how to Bond the key "i" to the "toggleInventoryGui();." What code would I use to do this?

About the author


#1
04/17/2006 (6:11 pm)
SomeKeyMap.bind(keyboard, "i", toggleInventoryGui);

now the trick is which keymap you wish to BIND to
good luck
#2
04/17/2006 (6:21 pm)
I thought that you might have to have the empty brace set "()" to signify that there aren't any arguments. And also, what key map would be best, and how do they vary?
#3
04/18/2006 (8:30 am)
Movemap is the one used in game
#4
04/18/2006 (11:47 am)
I have tried that numerously, but no results. Surely I must be doing something wrong? I'm still not sure about the brace set - is that needed?
#5
04/23/2006 (1:59 pm)
Yeah, that's not working. I've tried it numerous times. What's wrong?