Author Topic: AF button to halfshutter while Live View on 500D  (Read 4731 times)

Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 607
AF button to halfshutter while Live View on 500D
« on: August 06, 2012, 07:54:17 PM »
How can i find the code to the AF button ?
The following code does not work with the liveview

Code: [Select]
#define BGMT_PRESS_ZOOMOUT_MAYBE 0xD

-----------------------------------------------------------------------------------

if (lv && HALFSHUTTER_PRESSED)
            {
                fake_simple_button(BGMT_PRESS_ZOOMOUT_MAYBE);
            }

I wanted to move the AF button to halfshutter while Live View on 500D

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: AF button to halfshutter while Live View on 500D
« Reply #1 on: August 06, 2012, 09:17:28 PM »
Isn't this already in Canon menus?

To find out button codes, go to debug.c and change this:

Code: [Select]
void spy_event(struct event * event)
{
-    if (get_draw_event())
+    if (1)

but half-shutter press is "special".

Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 607
Re: AF button to halfshutter while Live View on 500D
« Reply #2 on: August 07, 2012, 12:01:50 AM »
AF button and halfshutter have the same value.

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: AF button to halfshutter while Live View on 500D
« Reply #3 on: August 07, 2012, 12:08:31 AM »
And that value is EVENTID_METERING_START ;)

Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 607
Re: AF button to halfshutter while Live View on 500D
« Reply #4 on: August 07, 2012, 01:18:43 AM »
It will be difficult if it is possible.

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: AF button to halfshutter while Live View on 500D
« Reply #5 on: August 07, 2012, 08:20:05 AM »
I still don't understand what you want do do.

Maybe play with those:
Code: [Select]
cfn_set_af_button(AF_BTN_HALFSHUTTER);
cfn_set_af_button(AF_BTN_STAR);

Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 607
Re: AF button to halfshutter while Live View on 500D
« Reply #6 on: August 07, 2012, 10:42:23 PM »
500D does not have this feature for LiveView

Focusing on the LV 500D only works with this button
http://img444.imageshack.us/img444/9808/500d.jpg

a made help for panoramas - ;D