1. 12 Feb, 2021 6 commits
  2. 31 Jan, 2021 1 commit
  3. 29 Jan, 2021 1 commit
    • Ricardo Quesada's avatar
      gamepad: accelerator -> throttle · 543e3fb7
      Ricardo Quesada authored
      This is to prevent a possible confussion between accelerator and
      accelerometer.
      A future commit will include "accel" and "gyro" as part of the gamepad
      properties.
      543e3fb7
  4. 27 Jan, 2021 2 commits
    • Ricardo Quesada's avatar
      fix clang-format issues · 1602bd45
      Ricardo Quesada authored
      1602bd45
    • Ricardo Quesada's avatar
      device vendors: VID/PID for 8bitdo zero 2 and TUTUO · 30bfef42
      Ricardo Quesada authored
      This commit adds VID/PID entries for:
       - 8bitdo Zero 2
       - TUTUO, a gamepad compatible for PS4
      
       It also fixes indentation issues.
       It also removes the "(bluepad32)" comment from each Bluepad32 entry.
       This is not needed since all the Bluepad32 entires are enclosed in a:
         // Bluepad32 entries start here:
         // ...
         // Bluepad32 entires end here.
      30bfef42
  5. 22 Jan, 2021 1 commit
  6. 20 Jan, 2021 2 commits
  7. 15 Jan, 2021 4 commits
  8. 14 Jan, 2021 2 commits
    • Ricardo Quesada's avatar
      ds4/ds5: remove uni_hid_parser_ds*_usage() · e691f80f
      Ricardo Quesada authored
      uni_hid_parser_ds4/5_usage() was used only in put "HID" mode.
      Since both ds4 and ds5 use "stream" mode, those functions are no longer
      needed.
      
      Add comment with link to git-commit that contains that functions, should
      they be needed in the future.
      e691f80f
    • Ricardo Quesada's avatar
      ds3: simplify code · c32598f3
      Ricardo Quesada authored
      DS3 follows the same "pattern" used in DS4 and DS5.
      Although DS3 does not use a report that is compatible with DS4 (or DS5)
      for the buttons, it is good to have similar code in all of them.
      
      This makes the code much easier to read (and mantain).
      
      Also fixes a bug in DS3 where the player LEDs was not being set when
      rumble was set at the same time.
      
      misc: move comments to left in ds4 / ds5 making the code looks "shorter"
      c32598f3
  9. 13 Jan, 2021 5 commits
    • Ricardo Quesada's avatar
      ds4: simplify code · e558fcdc
      Ricardo Quesada authored
      Uses some of the DS5 "simplifications" to make the code easier to read
      and more mantainable.
      
      - Move "updated_states" to _init_report
      - No need to set the "no button was pressed"
      - Craete ds4_send_output_report
      - Rename ds4_ff_report -> ds_output_report
      - rename ds4_rumble_off -> ds4_set_rumble_off
      - rename "rumble_left/right" -> motor_left/right
      e558fcdc
    • Ricardo Quesada's avatar
      ds5: rumble (WIP) · a19d24c0
      Ricardo Quesada authored
      Add the rumble logic for DualSense.
      Code seems to be following the spec, but for some reason it is not
      working.
      
      This commit also simplifies how to send output reports by moving common
      logic to "ds5_send_output_report()"
      a19d24c0
    • Ricardo Quesada's avatar
      ds5: lightbar & player leds · b9207a09
      Ricardo Quesada authored
      This commit add support for lightbar LED and player_leds in DualSense
      gamepad.
      Also it simplifies the code of setting the buttons.
      And exposes the MISC_SYSTEM button, which was not exposed by a
      copy&paste error.
      
      TODO: add support for rumble.
      b9207a09
    • Ricardo Quesada's avatar
      ds5: add missing buttons · c1874c21
      Ricardo Quesada authored
      This commit adds support for the missing DualSense buttons:
      
      - north,south,west,east
      - l1,l2,r1,r2
      - ps,share,options
      - thumb-clicks
      
      Also enables "stream" mode by default.
      c1874c21
    • Ricardo Quesada's avatar
      ds5: DualSense "stream" report. WIP · c9658f37
      Ricardo Quesada authored
      This is the initial support for "stream" mode for the DualSense (DS5)
      gamepad.
      
      This commits supports:
       - axis: x,y,rx,ry
       - brake / throttle
       - dpad
      
      It also moves "crc32_le" function to utils since it is shared both by
      ds4 and ds5.
      
      TODO:
       - add support for remaining buttons.
       - rename ds5 -> dd
      c9658f37
  10. 03 Jan, 2021 1 commit
  11. 02 Jan, 2021 3 commits
  12. 31 Dec, 2020 1 commit
  13. 30 Dec, 2020 1 commit
  14. 29 Dec, 2020 4 commits
    • Ricardo Quesada's avatar
      music76489: disable reverse_byte · 9e9ffe21
      Ricardo Quesada authored
      "reverse_byte" was only added because the protoboard had the wrong
      wiring and it was easier to "fix" it in software that to re-wire the
      protoboard.
      
      Since the PCB are working Ok, there is no need to keep using the
      protoboard, thus the "reverse_byte" is no longer used.
      
      In addition to that, new code to play music from REPL was added.
      
      And "play()" (which is not called "tick") no longer measures time.
      The caller is responsible for calling it at 60Hz. This simplifies the
      game logic and is less error prone.
      9e9ffe21
    • SukkoPera's avatar
      Wii: Report readings of all buttons · ac44858c
      SukkoPera authored
      ac44858c
    • Ricardo Quesada's avatar
      clang-format fixes · 7f29c524
      Ricardo Quesada authored
      7f29c524
    • Ricardo Quesada's avatar
      Wii U Controller: Axis values are mapped to -512,511 · 8383441e
      Ricardo Quesada authored
      This commit fixes the range of the Wii U Controller.
      Before it was reporting the values directly from the "wire": -1280,
      1279.
      But the reported values must be between -512,511
      8383441e
  15. 27 Dec, 2020 1 commit
  16. 13 Dec, 2020 1 commit
    • Ricardo Quesada's avatar
      Add music example · ddf293cd
      Ricardo Quesada authored
      although most probably this should be moved to a different repo,
      the one where I'll design the shield, but for the moment I'll place
      these small python/.vgm files here
      ddf293cd
  17. 05 Dec, 2020 2 commits
  18. 01 Dec, 2020 2 commits