1. 05 Apr, 2011 3 commits
    • Sam Lantinga's avatar
      0e83d1d4
    • Sam Lantinga's avatar
      Fixed bug 1173 (No mouse wheel event on linux/x11) · 65b0f309
      Sam Lantinga authored
       Matthias      2011-03-20 23:07:02 PDT
      
      On X11, SDL 1.3 does not generate a mouse wheel event. Instead, button
      down/buttton up events are generated by SDL. After looking at the code in
      SDL_x11events.c, I assume this is due to the fact that X11 does not have a
      dedicated mouse wheel event.
      
      I did a little research on the behavior of mouse wheel events on X11 systems.
      Apparently, mouse wheel events generate a button down/button up event with the
      same time, i.e. with exact same timestamp.
      
      Attached you can find my changes to SDL_x11events.c, which generates SDL mouse
      wheel events for those button down events that have a button release event
      immediately following it (for the same button, and with the same timestamp).
      
      I did have to make an assumption: As standard X11 implementations know only 5
      buttons, I have mapped Button4 to "wheel up" (i.e. +1), and Button5 to "wheel
      down" (i.e. -1).
      
      Note that if you include this patch, no SDL button down/up events will be
      generated on X11 platforms for mouse wheel events (which is probably a
      significant change for those that have programmed their code to work with
      them).
      65b0f309
    • Ryan C. Gordon's avatar
      Some more iOS orientation rotation fixes. · b786ea8b
      Ryan C. Gordon authored
      - Always use a UIViewController, even if window is not resizable.
      - Let non-resizable windows still flip over, so user can hold device with the
      correct orientation, but upside down, if that's more comfortable.
      - Don't set the UIScreen unless we're forced to, as it resets some state.
      - Minor correction with conventions for -[self init] tapdance.
      
      --HG--
      extra : rebase_source : d1b861f1174282eccb34f5efd183b03f6efcc2fa
      b786ea8b
  2. 04 Apr, 2011 1 commit
  3. 03 Apr, 2011 2 commits
  4. 29 Mar, 2011 6 commits
  5. 28 Mar, 2011 1 commit
  6. 27 Mar, 2011 4 commits
  7. 25 Mar, 2011 10 commits
  8. 22 Mar, 2011 2 commits
  9. 21 Mar, 2011 2 commits
  10. 14 Mar, 2011 1 commit
  11. 16 Mar, 2011 7 commits
  12. 15 Mar, 2011 1 commit