summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDuncan McGreggor <duncan@ubuntu.com>2011-03-14 22:42:58 -0600
committerDuncan McGreggor <duncan@ubuntu.com>2011-03-14 22:42:58 -0600
commit27b3fff407ee2b21473748b057f1df9ba6cd55c5 (patch)
treea4a12155296addaf3f22695d09503f23e71d0726 /python
parent537fcd8fcd76322c174485d69ba9c61d2b685e3f (diff)
Updated code comments and fixed a method name.
Diffstat (limited to 'python')
-rw-r--r--python/evemu/device.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/python/evemu/device.py b/python/evemu/device.py
index 0d3ffe9..7b0eba4 100644
--- a/python/evemu/device.py
+++ b/python/evemu/device.py
@@ -42,9 +42,8 @@ class EvEmuDevice(base.EvEmuBase):
self._device_pointer = device_new("")
@property
- def _as_property_(self):
- #return self.get_deivce_pointer()
- return self._deivce_pointer
+ def _as_parameter_(self):
+ return self.get_deivce_pointer()
def get_lib(self):
return self._lib
@@ -108,13 +107,15 @@ class EvEmuDevice(base.EvEmuBase):
self._device_file_stream)
def create_node(self, device_file):
- # load device data from the virtual device description file
+ # load device data from the virtual device description file into the
+ # data structure referenced by the device pointer
self.read(device_file)
# create the node
try:
self._uinput_fd = os.open(const.UINPUT_NODE, os.O_WRONLY)
except exception.EvEmuError:
self.delete()
+ # populate the new node with data from the device pointer
try:
#import pdb;pdb.set_trace()
self._call(