title: Simulate all physical buttons like the pressure on the home button on iOS 7 (Jailbreak)
body: <p>I'm trying to simulate the "home button pressed" on iOS 7 but the previous method used on iOS 6 doesn't work. I speak of course of a jailbroken device.</p>
  
  <pre><code>#include "GSEvent.h"
  
      - (void)simulateHomeButton
      {
         struct GSEventRecord record;
         memset(&amp;record, 0, sizeof(record));
         record.type = kGSEventMenuButtonDown;
         record.timestamp = GSCurrentEventTimestamp();
         GSSendSystemEvent(&amp;record);
         record.type = kGSEventMenuButtonUp;
         GSSendSystemEvent(&amp;record);
      }
  </code></pre>
  
  <p>*UPDATE
  What I really need is a generic method like the old one that let me to simulate the pressure of all physical buttons </p>