The South Australian Government is hoping new laws now in effect will help curb the number of gun-related crimes.
Attorney-General John Rau has condemned a string of recent shootings and expressed hope the laws will ease the problems.
"Now just firing at a building, without even knowing if there's anyone in there, carries a maximum penalty of eight or 10 years' jail, so any previous gap in the law has been plugged in that respect," he said.
A family at Craigmore in Adelaide's northern suburbs had three shots fired at their home early on Sunday, two of them leaving holes in a front bedroom window.
Superintendent David Donovan said it was fortunate no one was hurt.
"They have penetrated the window, through the bedroom and into the walls on the opposite side of the bedroom ... where two adults were sleeping. They are fortunate not to have been injured," he said.
Police said two children were asleep in another bedroom.
Officers think the family was an innocent victim and are investigating if the previous tenants were the intended target.