I'm having the same issue trying to create hotkeys to use a gamepad with the tour
The main issue is the grabbing the nearest hotspot part
I want to use get(view.hlookat) and then compare it to the ath value for the hotpsots but easier said then done when dealing with unknown number of hotspots per pano.
I probably need to use a loop to loop through all available hotspots in a given pano and then calculate which is closer in a clockwise or anti clockwise movement but not quite sure where to start. I'm sure I'll figure it out but it's a bit daunting as although I used to be a regular xml and javascript junkie I'm a bit rusty now.
What I am surprised about is no one seems to have done this yet so I'll try and share with everyone once I get something working.
In the mean time if anyone has any handy pointers let me know.