Skip to content

Commit

Permalink
inverted display of vertical axis
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-diaz committed Feb 11, 2025
1 parent d47b2fe commit e908088
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/components/profile/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ <h2>{{getSectionTitle()}}</h2>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_START)' (click)='pick(HID.GAMEPAD_START)'><span class='material small'>menu</span></div>
</div>
<div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_AXIS_LY_NEG)' (click)='pick(HID.GAMEPAD_AXIS_LY_NEG)'><span class='material'>keyboard_arrow_up</span></div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_AXIS_LY)' (click)='pick(HID.GAMEPAD_AXIS_LY)'><span class='material'>keyboard_arrow_up</span></div>
<div class='spacing w9'></div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_Y)' (click)='pick(HID.GAMEPAD_Y)'>Y</div>
</div>
Expand All @@ -550,11 +550,11 @@ <h2>{{getSectionTitle()}}</h2>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_B)' (click)='pick(HID.GAMEPAD_B)'>B</div>
</div>
<div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_AXIS_LY)' (click)='pick(HID.GAMEPAD_AXIS_LY)'><span class='material'>keyboard_arrow_down</span></div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_AXIS_LY_NEG)' (click)='pick(HID.GAMEPAD_AXIS_LY_NEG)'><span class='material'>keyboard_arrow_down</span></div>
<div class='spacing w2'></div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_UP)' (click)='pick(HID.GAMEPAD_UP)'><span class='material'>arrow_upward</span></div>
<div class='spacing w3'></div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_AXIS_RY_NEG)' (click)='pick(HID.GAMEPAD_AXIS_RY_NEG)'><span class='material'>keyboard_arrow_up</span></div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_AXIS_RY)' (click)='pick(HID.GAMEPAD_AXIS_RY)'><span class='material'>keyboard_arrow_up</span></div>
<div class='spacing w2'></div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_A)' (click)='pick(HID.GAMEPAD_A)'>A</div>
</div>
Expand All @@ -570,7 +570,7 @@ <h2>{{getSectionTitle()}}</h2>
<div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_DOWN)' (click)='pick(HID.GAMEPAD_DOWN)'><span class='material'>arrow_downward</span></div>
<div class='spacing w3'></div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_AXIS_RY)' (click)='pick(HID.GAMEPAD_AXIS_RY)'><span class='material'>keyboard_arrow_down</span></div>
<div class='button' [ngClass]='pickCls(HID.GAMEPAD_AXIS_RY_NEG)' (click)='pick(HID.GAMEPAD_AXIS_RY_NEG)'><span class='material'>keyboard_arrow_down</span></div>
</div>
</div>

Expand Down
8 changes: 4 additions & 4 deletions src/lib/hid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,16 @@ export enum HID {
GAMEPAD_Y,

GAMEPAD_AXIS_LX = GAMEPAD_AXIS_INDEX,
GAMEPAD_AXIS_LY,
GAMEPAD_AXIS_LY_NEG, // Inverted display of the vertical axis.
GAMEPAD_AXIS_LZ,
GAMEPAD_AXIS_RX,
GAMEPAD_AXIS_RY,
GAMEPAD_AXIS_RY_NEG, // Inverted.
GAMEPAD_AXIS_RZ,
GAMEPAD_AXIS_LX_NEG,
GAMEPAD_AXIS_LY_NEG,
GAMEPAD_AXIS_LY, // Inverted.
GAMEPAD_AXIS_LZ_NEG,
GAMEPAD_AXIS_RX_NEG,
GAMEPAD_AXIS_RY_NEG,
GAMEPAD_AXIS_RY, // Inverted.
GAMEPAD_AXIS_RZ_NEG,

PROC_PROFILE_0 = PROC_INDEX,
Expand Down

0 comments on commit e908088

Please sign in to comment.