Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Did the first generation Pokemon games for gameboy poll for the d-pad state or was the input state done based on events?

I'm currently trying to implement a similar control and I'm interested in comparing my input with that of the gameboy and Pokemon.

I'm using SneakyInput and cocos2d.

share|improve this question
I would expect they used polling; it's the native way provided by the hardware, and there wasn't really a lot of processing power to spare with that ~4.2MHz CPU, especially not for a game as complex as this, so I think they'd want to keep it as simple as possible. Of course, you also have to remember that these games were re-programmed to make translation possible at all, so it is even possible that there is a difference between the "old" and the "new" version. – Michael Madsen May 29 '11 at 9:40
I think it doesn't matter weather it was written using input state or based on events, the only thing important is to have a good game control and that can be achived with both methods, also they can be very similar and user might not even feel any difference at all if it's implemented good enough. – Ali.S May 29 '11 at 10:14
Does it really matter? – The Communist Duck May 29 '11 at 11:25
@Gajet Because mine was short and concise and to the point. – The Communist Duck May 29 '11 at 20:00
@Gajet ...Also because your comment is just one long run-on-sentence. – AttackingHobo May 29 '11 at 20:46
up vote 1 down vote accepted

It really doesn't matter -- you can use either polling or event-based interrupts to simulate the other kind of input, so that decision is largely irrelevant in trying to mimic the characteristics of the input from older devices.

That said, you can find a lot of information about systems that old on emulation enthusiast websites (this one, for example, contains a wealth of information about the hardware and memory-mapped registers uses by the GameBoy -- it's similar to the document linked in some of the comments, if not exactly the same in a different format).

To achieve emulation of a particular game's input characteristics you'd want to do it at a higher level -- taking into account things like how the game handles two opposing directional bits set for joystick input, for example. Many older games don't handle this well, because it is generally not possible to physically interact with the device fast enough or in such a fashion as to cause some of the potential states to exist. This is how tool-assisted speed runners do some of their work.

You may want to scan through the TASVideos resource page for Pokemon and see if maybe there are any control-related oddities you should be emulating if you really want that level of similarity to the game.

But I don't think it matters very much to the end result if you choose polling or not, even though that is generally what was used on the GameBoy.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.