Hello again.
I've spent the last hour poking through Luc's source and found these
lines in pwc-if.c:
if ((ptr[0] ^ pdev->vmirror) & 0x01) {
if (ptr[0] & 0x01)
Info("Snapshot button pressed.\n");
else
Info("Snapshot button released.\n");
}
I know nothing about c programming, but those lines look quite
promising to me. How could I go about accessing that output?
Cheers,
Andrew.
On 7/8/05, Andrew Cavers <> wrote:
> Hi all,
>
> This question was asked just a month ago and got no response, which I
> guess answers my question, but anyway...
>
> Is there any way to gain access to the button on the top of a pwc
> webcam (I use a Logitech Quickcam Pro 4000)? Would this task be up to
> the pwc video driver or would the button be treated like a separate
> USB device like the microphone? I realise that 99% of users will never
> use the button and that using up bandwidth checking whether it's being
> pushed may seem like a waste, but for certain applications, that
> button could be very useful.
>
> For example, I am developing a device that uses only motion detection
> through the webcam to control it and that one button would prove very
> useful to me to invoke a callibration function.
>
> Thanks for any help,
>
> Andrew.
>
> --
> --
> Andrew Cavers
>
> www.mution.com
>
--
--
Andrew Cavers
www.mution.com
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
|