void GoofyLeapImageGallery::tweenCompleted()
{
  mainOffsetX = 0;
  isMoving    = false;
  swipeFree   = true;
  if(singleHeadDetected)
    handStartPos = leap.getSimpleHands()[0].fingers[INDEX].tip;
  switchImage();
}
/*********************************************************************
 * @fn      DualImageConcept_handleKeys
 *
 * @brief   Handles all key events for this device.
 *
 * @param   shift - true if in shift/alt.
 * @param   keys - bit field for key events. Valid entries:
 *                 HAL_KEY_SW_2
 *                 HAL_KEY_SW_1
 *
 * @return  none
 */
static void DualImageConcept_handleKeys(uint8_t shift, uint8_t keys)
{
  (void)shift;  // Intentionally unreferenced parameter

  if (keys & DIC_SWITCH_IMAGE_BUTTON)
  { 
    // Increment and write shared data
    sharedData++;
    osal_snv_write(NV_ID_SHARED_DATA, sizeof(uint8_t), &sharedData);
    
    // Signal a change in images to run.
    switchImage();
    
    // Reset.
    HAL_SYSTEM_RESET();
    
    // Should never get here.
  }
}
void GoofyLeapImageGallery::start()
{
  if(urlImages.size() > 0)
    switchImage();
}