summaryrefslogtreecommitdiffstats
path: root/mouse.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-02-23 21:33:52 +0000
committerMatt Wilson <msw@redhat.com>2000-02-23 21:33:52 +0000
commitdca733e2fe356bd596d6b8cde5246db0767fe221 (patch)
tree721d53da343548b1839e35afd816bda977b41b55 /mouse.py
parentdb3fdd7e97855b8ea35064ed17e8e91ed98068ab (diff)
downloadanaconda-dca733e2fe356bd596d6b8cde5246db0767fe221.tar.gz
anaconda-dca733e2fe356bd596d6b8cde5246db0767fe221.tar.xz
anaconda-dca733e2fe356bd596d6b8cde5246db0767fe221.zip
fix for kickstart mouse
Diffstat (limited to 'mouse.py')
-rw-r--r--mouse.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mouse.py b/mouse.py
index f9d3c9104..94ed8e3fa 100644
--- a/mouse.py
+++ b/mouse.py
@@ -135,11 +135,14 @@ class Mouse (SimpleConfigFile):
def setDevice(self, device):
self.device = device
- def set (self, mouse, emulateThreeButtons, thedev = None):
+ def set (self, mouse, emulateThreeButtons = -1, thedev = None):
(gpm, x11, dev, em) = self.mice[mouse]
self.info["MOUSETYPE"] = gpm
self.info["XMOUSETYPE"] = x11
self.info["FULLNAME"] = mouse
- self.emulate = emulateThreeButtons
+ if emulateThreeButtons != -1:
+ self.emulate = emulateThreeButtons
+ else:
+ self.emu = em
if not self.device and thedev: self.device = thedev
if not self.device: self.device = dev