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 14, 2023
1 parent d60f13c commit d5cae14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/joysticks/JoystickPS.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { v4 as uuid4 } from 'uuid'
import { computed, onBeforeUnmount, ref, toRefs, watch } from 'vue'
import { JoystickModel } from '@/libs/joystick/manager'
import type { InputWithPrettyName } from '@/libs/joystick/protocols'
import { scale } from '@/libs/utils'
import { type JoystickInput, type ProtocolControllerMapping, JoystickAxis, JoystickButton } from '@/types/joystick'
Expand All @@ -19,6 +20,7 @@ const textColor = '#747474'
enum Models {
PS4 = 'PS4',
PS5 = 'PS5',
LogitechExtreme3DPro = 'LogitechExtreme3DPro',
}
const buttonPath: { [key in JoystickButton]: string } = {
Expand Down Expand Up @@ -144,7 +146,8 @@ watch(
)
const joystick_svg_path = computed(() => {
return `/images/${props.model}.svg`
const svgModelFileName = props.model === JoystickModel.LogitechExtreme3DPro? 'LogitechExtreme3DPro' : 'PS4'
return `/images/${svgModelFileName}.svg`
})
watch(
Expand Down

0 comments on commit d5cae14

Please sign in to comment.