FSEM input problems!

Ok, I’ve been playing around with applets a good bit and learned to use key, mouse, and mouse motion listeners fairly easily, but I cannot get these to work with full screen exclusive mode. Can somebody tell me how to get these to work with FSEM or what I should be using to handle input?

Thanks

it sort of depends on how you’re rendering, actually. If all you have is a JFrame rendering with a BufferStrategy from that JFrame, then the JFrame needs to be handling the events (and the JFrame is likely the only AWTEvent-capable container you’re using in that situation)

If your fullscreen frame is using a panel or some other container, it might not have focus (the fullscreen may have it). a few ways you can fix this:

  1. allow the fullscreen window to pass events to your container

or

  1. use the setFocusable(false) on your container, and do all event handling with the frame

but most important of all: post your code, so I can stop taking guesses at what the situation is :wink:

Oye, my problem is bigger than just the input! I can’t figure out FSEM, know any tutorials for it? Other than the sun one, that one puts me to sleep!

not any that I know of, but there is this code snippet you can steal from: http://www.exampledepot.com/egs/java.awt/screen_FullWin.html

I’ve been using LWJGL to access fullscreen for a while now, so I’m kind of fuzzy with all that Java2D requires to get a working FSEM going