Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

key bind / key event listener in 1.4.6?

keybind keyevent onkey checkkey

  • Please log in to reply
No replies to this topic

#1

benadamx
    benadamx

    Newly Spawned

  • Members
  • 1 posts

Posted 08 January 2013 - 08:54 PM

Hay Guys,

I am working on my first mod now (an iTunes status/control sort of thing hopefully), and in getting started I've been trying to work my way through this tutorial, which is about as close to a 'hello world' sort of thing as I have yet found:



.. and it's all good up until the last few lines of code; over the course of the year since the tutorial was made, much has changed, and now in 1.4.6 some of it is just extremely wrong.

so this is where I'm stuck:

the very last part of this tutorial involved adding a key event listener to Guiingame.java, but as of 1.4.6 that doesn't appear to be the right place to put it anymore (and if it still is the right place, I don't see an obvious place to put it, as nothing in there appears to be listening for key events anymore)..

so I guess my question is, where do I put that key event listener in 1.4.6?

Register or log in to remove.