Closed asdf1280 closed 1 year ago
void stickHandle(Joystick stick, int id)
{
try
{
bool[] buttons;
int[] joyInputs = new int[8];
JoystickState state = new JoystickState();
//Bekomme alle Infos über den mit id ausgewählten Stick
state = stick.GetCurrentState();
Possible unnecessary construction that can lead to leaked memory and unnecessary GC
JoystickState state = stick.GetCurrentState();
Thank you for the suggestions! I have saved your changes in the develop branch. However, I would say that it's not worth releasing it as an update yet. Once a few more improvements or features accumulate, I will release it :)
Regards Jannik
in FormMain.cs
Optimized code: