/****************************************************
 *  TouchSensor.c                                         
 *  Created on: 2012/04/17 3:02:10                      
 *  Implementation of the Class TouchSensor       
 *  Original author: hiroyuki.watanabe                     
 ****************************************************/

#include "ecrobot_interface.h"
#include <string.h>
#include <stdlib.h>

#include "TouchSensor.h"

void TouchSensor_init(TouchSensor* this, INPUT_PORT a_inputPort)
{
	this->inputPort = a_inputPort;
	
}

BOOL TouchSensor_isPressed(TouchSensor* this)
{
	return ecrobot_get_touch_sensor(this->inputPort);
} 




