#include "Base.h" #include "Form.h" #include "AbsoluteLayout.h" #include "FlowLayout.h" #include "VerticalLayout.h" #include "Game.h" #include "Theme.h" #include "Label.h" #include "Button.h" #include "CheckBox.h" #include "Scene.h" // Default form shaders #define FORM_VSH "res/shaders/form.vert" #define FORM_FSH "res/shaders/form.frag" // Scroll speed when using a DPad -- max scroll speed when using a joystick. static const float GAMEPAD_SCROLL_SPEED = 500.0f; // Distance a joystick must be pushed in order to trigger focus-change and/or scrolling. static const float JOYSTICK_THRESHOLD = 0.75f; // If the DPad or joystick is held down, this is the initial delay in milliseconds between focus changes. static const float GAMEPAD_FOCUS_REPEAT_DELAY = 300.0f; namespace gameplay { static Effect* __formEffect = NULL; static std::vector