Fixed event spam when using the Nintendo Switch controller
Fixed event spam when using the Nintendo Switch controller

There is no filtering on the Nintendo Switch Pro controller thumbstick, so there will frequently be events with very slight change. These are turned into "not pressed" events, which cancel "pressed" events from keys and buttons.

This change filters out up to 5% jitter, but it might be worth revisiting whether "not pressed" events should cancel "pressed" events.

guilhermefelipecgs/godot,firefly2442/godot,Faless/godot,godotengine/godot,godotengine/godot,sanikoyes/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,Valentactive/godot,Valentactive/godot,ZuBsPaCe/godot,firefly2442/godot,vkbsb/godot,pkowal1982/godot,josempans/godot,vnen/godot,vnen/godot,sanikoyes/godot,vnen/godot,akien-mga/godot,josempans/godot,Faless/godot,godotengine/godot,sanikoyes/godot,vkbsb/godot,Valentactive/godot,josempans/godot,josempans/godot,BastiaanOlij/godot,Zylann/godot,Zylann/godot,godotengine/godot,Shockblast/godot,guilhermefelipecgs/godot,vnen/godot,ZuBsPaCe/godot,godotengine/godot,ZuBsPaCe/godot,vkbsb/godot,sanikoyes/godot,josempans/godot,vnen/godot,ZuBsPaCe/godot,Zylann/godot,akien-mga/godot,Valentactive/godot,firefly2442/godot,guilhermefelipecgs/godot,josempans/godot,guilhermefelipecgs/godot,akien-mga/godot,BastiaanOlij/godot,Valentactive/godot,vnen/godot,akien-mga/godot,firefly2442/godot,ZuBsPaCe/godot,Valentactive/godot,Faless/godot,josempans/godot,akien-mga/godot,BastiaanOlij/godot,BastiaanOlij/godot,Faless/godot,Zylann/godot,BastiaanOlij/godot,akien-mga/godot,guilhermefelipecgs/godot,sanikoyes/godot,Valentactive/godot,firefly2442/godot,BastiaanOlij/godot,vkbsb/godot,Zylann/godot,josempans/godot,Shockblast/godot,guilhermefelipecgs/godot,Shockblast/godot,Shockblast/godot,Zylann/godot,Valentactive/godot,BastiaanOlij/godot,pkowal1982/godot,Zylann/godot,Shockblast/godot,Faless/godot,Faless/godot,firefly2442/godot,guilhermefelipecgs/godot,sanikoyes/godot,firefly2442/godot,vnen/godot,godotengine/godot,godotengine/godot,ZuBsPaCe/godot,vnen/godot,Faless/godot,sanikoyes/godot,ZuBsPaCe/godot,pkowal1982/godot,akien-mga/godot,Zylann/godot,pkowal1982/godot,pkowal1982/godot,godotengine/godot,firefly2442/godot,Shockblast/godot,vkbsb/godot,sanikoyes/godot,vkbsb/godot,pkowal1982/godot,Shockblast/godot,ZuBsPaCe/godot,akien-mga/godot,vkbsb/godot,vkbsb/godot,pkowal1982/godot,Faless/godot,pkowal1982/godot,Shockblast/godot