yatsek / microemu

Automatically exported from code.google.com/p/microemu
0 stars 0 forks source link

Fixes for CustomItem.java #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I fixed a few issues with CustomItem to get it working with my
application:
- paint(Graphics g) now also calls the abstract paint(Graphics g, int w,
int h) function implemented by subclasses
- an appropriate getHeight() is also computed for the content
- isFocusable() returns true
- select() sends a fake keyPressed(-5): it seems to be the most
straightforward way to receive notification for the FIRE button

Original issue reported on code.google.com by bar...@gmail.com on 18 Nov 2009 at 11:53

Attachments:

GoogleCodeExporter commented 9 years ago
- and getGameAction(int keycode) now returns
Display.getGameAction(keycode)

Original comment by bar...@gmail.com on 18 Nov 2009 at 11:53

GoogleCodeExporter commented 9 years ago
Most of fixes has been already made on trunk. Added missing:
- isFocusable()
- select()

Original comment by bar...@gmail.com on 8 Jan 2010 at 11:46