Issue while using external usb device foot pedal controller in Mac application on macOS Monterey

When my Mac application is connected with external usb device foot pedal controller. For only macOS Monterey usb device foot pedal will send unexpected right click command before specified click command. When I run my application in macOS Monterey my application always got unexpected right click command first and then click command if I press click command from usb device foot pedal.

Is there any system setting I need to change for macOS Monterey to use external usb device foot pedal ?

Issue while using external usb device foot pedal controller in Mac application on macOS Monterey
 
 
Q