Skip to content

Commit

Permalink
Use dedicated svg model for the Logitech Extreme 3D Pro joystick
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Nov 13, 2023
1 parent 78eaeda commit 819f32c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/joysticks/JoystickPS.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const textColor = '#747474'
enum Models {
PS4 = 'PS4',
PS5 = 'PS5',
LogitechExtreme3DPro = 'LogitechExtreme3DPro',
}
const buttonPath: { [key in JoystickButton]: string } = {
Expand Down Expand Up @@ -144,7 +145,8 @@ watch(
)
const joystick_svg_path = computed(() => {
return `/images/${props.model}.svg`
const svgModelFileName = props.model === 'LogitechExtreme3DPro' ? 'LogitechExtreme3DPro' : 'PS4'
return `/images/${svgModelFileName}.svg`
})
watch(
Expand Down

0 comments on commit 819f32c

Please sign in to comment.