Skip to content

Commit

Permalink
[PS] Force stick values near edge to round up to max
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Oct 2, 2023
1 parent c27a9b4 commit c0ab7ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/adapter/wired/ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ static DRAM_ATTR const uint8_t ps_mouse_axes_idx[ADAPTER_MAX_AXES] =

static DRAM_ATTR const struct ctrl_meta ps_axes_meta[ADAPTER_MAX_AXES] =
{
{.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x7F, .abs_min = 0x80},
{.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x7F, .abs_min = 0x80, .polarity = 1},
{.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x7F, .abs_min = 0x80},
{.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x7F, .abs_min = 0x80, .polarity = 1},
{.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x90, .abs_min = 0x90},
{.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x90, .abs_min = 0x90, .polarity = 1},
{.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x90, .abs_min = 0x90},
{.size_min = -128, .size_max = 127, .neutral = 0x80, .abs_max = 0x90, .abs_min = 0x90, .polarity = 1},
{.size_min = 0, .size_max = 255, .neutral = 0x00, .abs_max = 0xFF, .abs_min = 0x00},
{.size_min = 0, .size_max = 255, .neutral = 0x00, .abs_max = 0xFF, .abs_min = 0x00},
};
Expand Down

0 comments on commit c0ab7ca

Please sign in to comment.