he did not know that steamboat willie 's father had been a compulsive gambler who had abandoned the family on many occasions when the gambling fever took him , or that the man had finally shot himself in the back room of a dancehall after a losing night at craps .