Did you try to see if Safe boot mode would allow access? If it will it could help.
• Try safe mode if your Mac doesn't finish starting up - Apple Support
And did you locate any simple PC two-button mouse or older Mac mouse?
A basic mouse should not need any additional driver software in OS X or
in MacOS9.2 -- if the unit is older and can dual-boot both classic 9 and X.
An Apple single button white mouse earlier than 2005 should do OK.
Something from a bin for about 50¢ can usually work out, I've new ones
that were under $1. from second hand stores. (donated new) also have
a good working USB wired Mighty Mouse that works. 50¢ and I know
how to clean the roller ball. IT also works in Leopard 10.5.8 in a G4 Mini.
An older G4 Power Mac tower may have a PMU reset and not a PRAM reset
however most people won't know the difference. See the link to theXLabs.
Plan on replacing the clock battery in any computer that you don't know history
of, since they can't last unplugged in storage and three years may be a stretch.
Since you did not exactly identify the model year or name of the computer,
to know details is usually most helpful as to formulate or research a reply.
Good luck & happy computing! 🙂