#6550 NORM Never A: Use pygame.USEREVENT for all OLPCGames events

Zarro Boogs per Child bugtracker at laptop.org
Fri Feb 22 11:46:01 EST 2008


#6550: Use pygame.USEREVENT for all OLPCGames events
------------------------+---------------------------------------------------
 Reporter:  mcfletch    |       Owner:  mcfletch          
     Type:  defect      |      Status:  new               
 Priority:  normal      |   Milestone:  Never Assigned    
Component:  olpc-games  |     Version:  Git as of bug date
 Keywords:              |    Verified:  0                 
 Blocking:              |   Blockedby:                    
------------------------+---------------------------------------------------
 Currently we are using custom events for all of the OLPCGames events.
 Problem is that Pygame only has a very limited set of open event types
 available and we've already overrun the set.

 Plan of attack:

 Move all events to use pygame.USEREVENT type, with the "code" element set
 to the olpcgames.* constants.

 This will break *all* OLPCGames activities when they switch to the new
 version, as such it will have to be a major-release change, not a point-
 version.  All *new* events will be generated with the new scheme.  In the
 interim, provide a flag at the top level that lets a given activity set a
 backward-compatibility flag that will produce the old-style events with
 the new OLPCGames environment.

-- 
Ticket URL: <http://dev.laptop.org/ticket/6550>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list