[PD-cvs] externals/io/hidio/linux input.h,NONE,1.1

Hans-Christoph Steiner eighthave at users.sourceforge.net
Thu Nov 30 06:53:43 CET 2006


Update of /cvsroot/pure-data/externals/io/hidio/linux
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5063/io/hidio/linux

Added Files:
	input.h 
Log Message:
did lots of renaming to the new [hidio] name, removed a little bit of cruft.  Builds on Mac OS X, but doesn't load yet :-/.  hidio_setup() gets called successfully, but for some reason hidio_new() does not seem to get called

--- NEW FILE: input.h ---
#ifndef _INPUT_H
#define _INPUT_H

/*
 * Copyright (c) 1999-2002 Vojtech Pavlik
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published by
 * the Free Software Foundation.
 */

#ifdef __KERNEL__
#include <linux/time.h>
#include <linux/list.h>
#else
#include <sys/time.h>
#include <sys/ioctl.h>
#include <asm/types.h>
#endif
[...977 lines suppressed...]
static inline void input_sync(struct input_dev *dev)
{
	input_event(dev, EV_SYN, SYN_REPORT, 0);
	dev->regs = NULL;
}

static inline void input_set_abs_params(struct input_dev *dev, int axis, int min, int max, int fuzz, int flat)
{
	dev->absmin[axis] = min;
	dev->absmax[axis] = max;
	dev->absfuzz[axis] = fuzz;
	dev->absflat[axis] = flat;

	dev->absbit[LONG(axis)] |= BIT(axis);
}

extern struct class_simple *input_class;

#endif
#endif





More information about the Pd-cvs mailing list