# Editing ketai library

**URL:** <https://discourse.processing.org/t/editing-ketai-library/5342>\
**Category:** Processing for Android\
**Created:** [November 8, 2018, 10:33am UTC](https://discourse.processing.org/t/editing-ketai-library/5342 "2018-11-08T10:33:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gonadgranny](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Post date:** [November 8, 2018, 10:33am UTC](https://discourse.processing.org/t/editing-ketai-library/5342/1 "2018-11-08T10:33:49Z")

</div>

I have been using the Ketai library and in particular the motionEvents. they work fine but every time i touch the screen i get “motionEvent called inside kgesture  
KGesture got a MotionEvent!” printed to the terminal. this is unnecessary and is making debugging harder as it clogs the terminal. is the only way to sort this out by editing the library? thanks.

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [November 8, 2018, 10:56am UTC](https://discourse.processing.org/t/editing-ketai-library/5342/2 "2018-11-08T10:56:52Z")

</div>

Hi gonadgranny,

As you can see in the source code, there is no way to not trigger the message eccept by editing the source code.

> <https://github.com/ketai/ketai/blob/master/src/ketai/ui/KetaiGesture.java#L137-L149>

---

<div class="post-metadata">

**Author:** ![gonadgranny](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Post date:** [November 8, 2018, 11:09am UTC](https://discourse.processing.org/t/editing-ketai-library/5342/3 "2018-11-08T11:09:26Z")

</div>

thanks for this jb4x. would this require downloading the source code, editing it and rebuilding it?

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [November 8, 2018, 11:12am UTC](https://discourse.processing.org/t/editing-ketai-library/5342/4 "2018-11-08T11:12:38Z")

</div>

I need to write at least 20 characters but the answer is yes.

---

<div class="post-metadata">

**Author:** ![gonadgranny](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Post date:** [November 8, 2018, 11:14am UTC](https://discourse.processing.org/t/editing-ketai-library/5342/5 "2018-11-08T11:14:10Z")

</div>

ok thanks. is this a straight forward affair? would you be able to point me towards a guide? if its plastered all over the internet then dont worry i will research myself.

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [November 8, 2018, 12:06pm UTC](https://discourse.processing.org/t/editing-ketai-library/5342/6 "2018-11-08T12:06:54Z")

</div>

I have absolutely no idea. From what I could have read or heard it can be quite tricky. There is probably someone here in the forum that knows exectly how to do it.

---

<div class="post-metadata">

**Author:** ![gonadgranny](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Post date:** [November 8, 2018, 12:20pm UTC](https://discourse.processing.org/t/editing-ketai-library/5342/7 "2018-11-08T12:20:09Z")

</div>

seems strange that one has to go to such lengths just to edit a library. in the arduino IDE for example you can simply read all of the library files and edit them as they are written in plain text…

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [November 8, 2018, 1:15pm UTC](https://discourse.processing.org/t/editing-ketai-library/5342/8 "2018-11-08T13:15:25Z")

</div>

Try it then, I might be wrong.  
I’m interested in the result!
