VolumeCamera is a project mainly written in OBJECTIVE-C and C, it's free.
iPhone app where camera is triggered by volume buttons
A really simple app that triggers the camera by pressing the volume buttons.
Right now, it only works with photos; there's some code in for videos but it has been commented out for now. Shouldn't be too hard to implement, if you're up for it.