Re: Esc and other key woes.... (a possible solution for you guys)


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]

Posted by Lilwolf on 22, 2001 at 6:56 PM:

In Reply to: Esc and other key woes.... (a possible solution for you guys) posted by Howard Casto on 22, 2001 at 4:09 PM:

I don't know about other languages... but...

Java allows you to register for a focus events. So you can recieve a call when you lose focus... then request it again.

This works well for me. The trouble can be getting the focus to begin with (since I was playing window / frame games)... but once I had it, I was fine.

So I have one frame that keeps the focus 100% of the time.

A trick to get this (I've done for other projects) is to have a transparent model window thats full screen and it captures all the key/mouse events and passes it through to one object.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]