Update of /cvsroot/freevo/freevo/src/input/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22125/src/input/plugins

Modified Files:
        joystick.py netremote.py sdl.py 
Log Message:
adjust to new event interface

Index: sdl.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/input/plugins/sdl.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** sdl.py      13 Jul 2005 20:17:32 -0000      1.8
--- sdl.py      16 Jul 2005 09:48:23 -0000      1.9
***************
*** 114,118 ****
          if isinstance(action, Item):
              # Action is an item, do some menu code here.
!             self.post_event(Event(MENU_CHANGE_SELECTION, action))
          return True
  
--- 114,118 ----
          if isinstance(action, Item):
              # Action is an item, do some menu code here.
!             MENU_CHANGE_SELECTION.post(action)
          return True
  
***************
*** 135,142 ****
              if action == 'PAGE_UP':
                  # Action 'UP' is defined in the listing_area
!                 self.post_event(MENU_PAGEUP)
              elif action == 'PAGE_DOWN':
                  # Action 'DOWN' is defined in the listing_area
!                 self.post_event(MENU_PAGEDOWN)
  
          elif isinstance(action, Item):
--- 135,142 ----
              if action == 'PAGE_UP':
                  # Action 'UP' is defined in the listing_area
!                 MENU_PAGEUP.post()
              elif action == 'PAGE_DOWN':
                  # Action 'DOWN' is defined in the listing_area
!                 MENU_PAGEDOWN.post()
  
          elif isinstance(action, Item):
***************
*** 144,150 ****
                  # Action is an item, do some menu code here.
                  if button == 1:
!                     self.post_event(MENU_SELECT)
                  elif button == 3:
!                     self.post_event(MENU_SUBMENU)
              else:
                  # mouse moved to much
--- 144,150 ----
                  # Action is an item, do some menu code here.
                  if button == 1:
!                     MENU_SELECT.post()
                  elif button == 3:
!                     MENU_SUBMENU.post()
              else:
                  # mouse moved to much

Index: netremote.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/input/plugins/netremote.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** netremote.py        6 Oct 2004 19:24:02 -0000       1.3
--- netremote.py        16 Jul 2005 09:48:23 -0000      1.4
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.4  2005/07/16 09:48:23  dischi
+ # adjust to new event interface
+ #
  # Revision 1.3  2004/10/06 19:24:02  dischi
  # switch from rc.py to pyNotifier
***************
*** 42,50 ****
  
  import notifier
- 
  import socket
- 
  import config
- import eventhandler
  
  
--- 45,50 ----

Index: joystick.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/input/plugins/joystick.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** joystick.py 7 May 2005 18:09:41 -0000       1.7
--- joystick.py 16 Jul 2005 09:48:23 -0000      1.8
***************
*** 12,15 ****
--- 12,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.8  2005/07/16 09:48:23  dischi
+ # adjust to new event interface
+ #
  # Revision 1.7  2005/05/07 18:09:41  dischi
  # move InputPlugin definition to input.interface
***************
*** 144,148 ****
              command = rc.key_event_mapper(command)
              if command:
!                 eventhandler.post(command)
  
          return True
--- 147,151 ----
              command = rc.key_event_mapper(command)
              if command:
!                 command.post()
  
          return True



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to