I've tried to use the GamePadTemplate proposed in the documentation with Greenfoot 3.6.0, but it seems to be outdated. I always gives me this error message:
java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$PlatformClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$PlatformClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
at GamePad.<clinit>(GamePad.java:98)
The line where at GamePad.java:98 is : final URLClassLoader cl = (URLClassLoader) parentCL;
Has anyone else encounter this problem and find a solution or is there a new way to connect a game controller to a Greenfoot program? Or am I just loosing my time maybe... Any help will be appreciated