Home | History | Annotate | Download | only in joystick12

Lines Matching defs:in

7  * "Software"), to deal in the Software without restriction, including
14 * included in all copies or substantial portions of the Software.
19 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
77 float in = mraa_aio_read (m_joystickCtxX);
78 if (in < X_left) return -1;
79 if (in < X_center) return -(X_center - in) / (X_center - X_left);
80 if (in == X_center) return 0;
81 if (in < X_right) return (in - X_center) / (X_right - X_center);
82 if (in >= X_right) return 1;
88 float in = mraa_aio_read (m_joystickCtxY);
89 if (in < Y_left) return -1;
90 if (in < Y_center) return -(Y_center - in) / (Y_center - Y_left);
91 if (in == Y_center) return 0;
92 if (in < Y_right) return (in - Y_center) / (Y_right - Y_center);
93 if (in >= Y_right) return 1;