Best approach to use this type of 'sensor/switch'?

well ther are 2 of these ball bearing sensors..

1 for X axis and 1 for Y axis..

however... Id liek to start working with just one sensor at a time..

since Im not sure how to go about this.

I guess Im nto sure how to tell the difference either.. (which is why Im posting for help/suggestions).. I mean I 'know" (100%) that its possible..

using these EXACT same sensors.. (I purchased the SAME exact part#)...

on 'toys' that have been sold for MANY years (decade?)

and when tilted (which I suppose I can test for sure again as I have several of these toys laying around).. they do NOT register the effect..

but when 'swung' it does..

timing check perhaps? when balls break contact on one side?..before they reach other side perhaps?

heck I havent even been able to get a simple 'timer/debounce' going to check the OTHER type of sensor(s) Im using as well..

(nail & spring type)..

I can get that to work fairly good using an external interrupt only..using a timer/polling approach I couldnt get anything to work right.. =(

but these Im not sure HOW to go about check/using it..

Thanks