diff --git a/examples/joystick_ps3.go b/examples/joystick_ps3.go index 2ecb1479..20527ecb 100644 --- a/examples/joystick_ps3.go +++ b/examples/joystick_ps3.go @@ -9,7 +9,7 @@ import ( func main() { gbot := gobot.NewGobot() joystickAdaptor := joystick.NewJoystickAdaptor("ps3") - joystickDriver := joystick.NewJoystickDriver(joystickAdaptor, "ps3", "../joystick/configs/dualshock3.json") + joystickDriver := joystick.NewJoystickDriver(joystickAdaptor, "ps3", "./platforms/joystick/configs/dualshock3.json") work := func() { gobot.On(joystickDriver.Events["square_press"], func(data interface{}) { diff --git a/examples/joystick_xbox360.go b/examples/joystick_xbox360.go index 2fade1ba..2c992019 100644 --- a/examples/joystick_xbox360.go +++ b/examples/joystick_xbox360.go @@ -9,7 +9,7 @@ import ( func main() { gbot := gobot.NewGobot() joystickAdaptor := joystick.NewJoystickAdaptor("xbox360") - joystickDriver := joystick.NewJoystickDriver(joystickAdaptor, "xbox360", "../joystick/configs/xbox360_power_a_mini_proex.json") + joystickDriver := joystick.NewJoystickDriver(joystickAdaptor, "xbox360", "./platforms/joystick/configs/joystick/configs/xbox360_power_a_mini_proex.json") work := func() { gobot.On(joystickDriver.Events["a_press"], func(data interface{}) {